desi77 0.1.7 → 0.1.8

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/dist/index.js +11 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1040,6 +1040,7 @@ var springTorqueADef = {
1040
1040
 
1041
1041
  // src/spring/plugTorque.ts
1042
1042
  import {
1043
+ withinPiPi,
1043
1044
  point as point3,
1044
1045
  contour as contour4,
1045
1046
  contourCircle as contourCircle3,
@@ -1166,18 +1167,18 @@ function pGeom4(t, param, suffix = "") {
1166
1167
  let aAddE = aAddenE;
1167
1168
  if (Math.abs(aM) > 1e-3) {
1168
1169
  const tri1 = triALLrLAA(aM, Rt, RbI);
1169
- const tri2 = triALLrLAA(Math.PI - aM, Rt, RmaxI);
1170
+ const tri2 = triALLrLAA(withinPiPi(Math.PI + aM), Rt, RmaxI);
1170
1171
  const tri3 = triALLrLAA(aM, Rt, RminE);
1171
- const tri4 = triALLrLAA(Math.PI - aM, Rt, RbE);
1172
- const [, a12a, , , , , trilog1] = tri1;
1173
- const [, a12c, , , , , trilog2] = tri2;
1174
- const [, a12e, , , , , trilog3] = tri3;
1175
- const [, a12g, , , , , trilog4] = tri4;
1172
+ const tri4 = triALLrLAA(withinPiPi(Math.PI + aM), Rt, RbE);
1173
+ const [, , a12a, , , , trilog1] = tri1;
1174
+ const [, , , , , a12d, trilog2] = tri2;
1175
+ const [, , a12e, , , , trilog3] = tri3;
1176
+ const [, , , , , a12h, trilog4] = tri4;
1176
1177
  rGeome.logstr += trilog1 + trilog2 + trilog3 + trilog4;
1177
- aSlopeI = -a12a + a12c;
1178
- aSlopeE = -a12e + a12g;
1179
- aAddI = aAddenI - 2 * a12c;
1180
- aAddE = aAddenE - 2 * a12g;
1178
+ aSlopeI = -a12a + a12d;
1179
+ aSlopeE = -a12e + a12h;
1180
+ aAddI = aAddenI - 2 * a12d;
1181
+ aAddE = aAddenE - 2 * a12h;
1181
1182
  }
1182
1183
  const aDedI = aTooth - 2 * aSlopeI - aAddI;
1183
1184
  const aDedE = aTooth - 2 * aSlopeE - aAddE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "desi77",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "A collection of 3D-designs",
5
5
  "private": false,
6
6
  "repository": {