@rulecad/cad 0.7.40 → 0.7.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/EXAMPLES.md +4 -4
  2. package/package.json +1 -1
package/EXAMPLES.md CHANGED
@@ -1072,7 +1072,7 @@ export function main (v) {
1072
1072
  "version": "0.1.0",
1073
1073
  "uses": ["x1c"],
1074
1074
  "engine": "manifold",
1075
- "anchors": { "axis": { "at": [0, 0, "0 - gap"], "axis": [0, 0, 1] } },
1075
+ "anchors": { "axis": { "at": [0, 0, "width * 2 + gap"], "axis": [0, 0, -1] } },
1076
1076
  "variables": {
1077
1077
  "gap": { "value": 0.3, "unit": "mm", "rule": "Clear of the motor plate" },
1078
1078
  "module": { "value": 1, "unit": "mm", "rule": "The gears'" },
@@ -1089,9 +1089,9 @@ import jscad from '@jscad/modeling'
1089
1089
  const { translate } = jscad.transforms
1090
1090
 
1091
1091
  export function main (v) {
1092
- const low = v.gears.spur({ module: v.module, teeth: v.low, width: v.width })
1093
- const high = translate([0, 0, v.width], v.gears.spur({ module: v.module, teeth: v.high, width: v.width }))
1094
- return v.ops.union(low, high)
1092
+ const high = v.gears.spur({ module: v.module, teeth: v.high, width: v.width })
1093
+ const low = translate([0, 0, v.width], v.gears.spur({ module: v.module, teeth: v.low, width: v.width, chamfer: 0 }))
1094
+ return v.ops.union(high, low)
1095
1095
  }
1096
1096
  ```
1097
1097
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulecad/cad",
3
- "version": "0.7.40",
3
+ "version": "0.7.41",
4
4
  "description": "The cad command: JSCAD designs from traceable rules, checked for printing and fit, versioned by what fits, shared as links and exported as Bambu 3MF.",
5
5
  "type": "module",
6
6
  "bin": {