desi76 0.1.16 → 0.1.17
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.
- package/dist/index.js +251 -155
- package/dist/pgdsvg/losange_axis.svg +1 -0
- package/dist/pgdsvg/losange_back.svg +1 -0
- package/dist/pgdsvg/losange_base.svg +1 -0
- package/dist/pgdsvg/losange_heights.svg +1 -0
- package/dist/pgdsvg/losange_leg.svg +4 -0
- package/dist/pgdsvg/losange_top.svg +2 -1
- package/dist/pgdsvg/scarabase_cut.svg +1 -1
- package/dist/pgdsvg/src_losange.svg +5 -1
- package/dist/pgdsvg/src_scarabase.svg +1 -1
- package/package.json +8 -7
package/dist/index.js
CHANGED
|
@@ -2581,9 +2581,6 @@ function pGeom6(t, param, suffix = "") {
|
|
|
2581
2581
|
if (l6d <= 0 || l62d <= 0 || l63d <= 0) {
|
|
2582
2582
|
throw `err170: S2 ${ffix5(param.S2)} is too small`;
|
|
2583
2583
|
}
|
|
2584
|
-
if (param.H3 === 0) {
|
|
2585
|
-
rGeome.logstr += "warn167: Warning H3 is zero\n";
|
|
2586
|
-
}
|
|
2587
2584
|
rGeome.logstr += `length ${ffix5(Ltot)} height ${ffix5(Htot)}
|
|
2588
2585
|
`;
|
|
2589
2586
|
const p7e = point3(R12, 0).translatePolar(Math.PI - a1, R12);
|
|
@@ -2617,11 +2614,17 @@ function pGeom6(t, param, suffix = "") {
|
|
|
2617
2614
|
figExtern.addMainO(ctrE1);
|
|
2618
2615
|
const ctrE3 = contour6(p91.cx, p91.cy).addCornerRounded(param.R2i).addPointA(R12 - R91, 0).addPointA(p91.cx, -p91.cy).addSegArc2().addCornerRounded(param.R2i).addSegStrokeA(X2 - param.S2, -T32).addCornerRounded(param.R2e).addSegStrokeA(X2 - param.S2, T32).addCornerRounded(param.R2e).closeSegStroke();
|
|
2619
2616
|
figExtern.addMainOI([ctrE3, contourCircle5(R12, 0, R11)]);
|
|
2620
|
-
} else {
|
|
2617
|
+
} else if (pFirstEnd === 1 && pSecondEnd === 1) {
|
|
2621
2618
|
const ctrE2 = contour6(p13.cx, p13.cy).addPointA(param.T3, 0).addPointA(p13.cx, -p13.cy).addSegArc2().addSegStrokeA(p63.cx, -p63.cy).addPointA(Ltot - param.T3, 0).addPointA(p63.cx, p63.cy).addSegArc2().closeSegStroke();
|
|
2622
2619
|
figExtern.addMainOI([ctrPlate, ctrE2]);
|
|
2623
2620
|
const ctrE3 = contour6(p91.cx, p91.cy).addCornerRounded(param.R2i).addPointA(R12 - R91, 0).addPointA(p91.cx, -p91.cy).addSegArc2().addCornerRounded(param.R2i).addSegStrokeA(p92.cx, -p92.cy).addCornerRounded(param.R2i).addPointA(X2 + R92, 0).addPointA(p92.cx, p92.cy).addSegArc2().addCornerRounded(param.R2i).closeSegStroke();
|
|
2624
2621
|
figExtern.addMainOI([ctrE3, contourCircle5(R12, 0, R11), contourCircle5(X2, 0, R21)]);
|
|
2622
|
+
} else {
|
|
2623
|
+
figExtern.addMainOI([
|
|
2624
|
+
ctrPlate,
|
|
2625
|
+
contourCircle5(R12, 0, R11),
|
|
2626
|
+
contourCircle5(X2, 0, R21)
|
|
2627
|
+
]);
|
|
2625
2628
|
}
|
|
2626
2629
|
} else {
|
|
2627
2630
|
let ctrE52 = function(iX, iRe, iRi, iA, iP) {
|
|
@@ -2659,13 +2662,15 @@ function pGeom6(t, param, suffix = "") {
|
|
|
2659
2662
|
} else if (pFirstEnd === 1 && pSecondEnd === 0) {
|
|
2660
2663
|
const ctrE6 = contour6(p63d.cx, p63d.cy).addCornerRounded(param.R2e).addSegStrokeA(p13.cx, p13.cy).addPointA(p93.cx, p93.cy).addSegArc(R93, false, true).addCornerRounded(param.R2i).addSegStrokeA(p95.cx, p95.cy).addCornerRounded(param.R2i).addPointA(p91.cx, p91.cy).addSegArc(R91, false, false).addCornerRounded(param.R2i).addSegStrokeA(X2 - param.S2, T32).addCornerRounded(param.R2e).addSegStrokeA(X2 - param.S2, -T32).addCornerRounded(param.R2e).addSegStrokeA(p91.cx, -p91.cy).addCornerRounded(param.R2i).addPointA(p95.cx, -p95.cy).addSegArc(R91, false, false).addCornerRounded(param.R2i).addSegStrokeA(p93.cx, -p93.cy).addCornerRounded(param.R2i).addPointA(p13.cx, -p13.cy).addSegArc(R93, false, true).addSegStrokeA(p63d.cx, -p63d.cy).addCornerRounded(param.R2e).addSegStrokeA(p6d.cx, -p6d.cy).addCornerRounded(param.R2e).addSegStrokeA(p1.cx, -p1.cy).addPointA(0, 0).addPointA(p1.cx, p1.cy).addSegArc2().addSegStrokeA(p6d.cx, p6d.cy).addCornerRounded(param.R2e).closeSegStroke();
|
|
2661
2664
|
figExtern.addMainOI([ctrE6, ...hollowL]);
|
|
2662
|
-
} else {
|
|
2665
|
+
} else if (pFirstEnd === 1 && pSecondEnd === 1) {
|
|
2663
2666
|
let ctrE42 = function(iyk) {
|
|
2664
2667
|
const rCtr = contour6(p13.cx, iyk * p13.cy).addPointA(p93.cx, iyk * p93.cy).addSegArc(R93, false, iyk > 0 ? true : false).addCornerRounded(param.R2i).addSegStrokeA(p95.cx, iyk * p95.cy).addCornerRounded(param.R2i).addPointA(p91.cx, iyk * p91.cy).addSegArc(R91, false, iyk > 0 ? false : true).addCornerRounded(param.R2i).addSegStrokeA(p92.cx, iyk * p92.cy).addCornerRounded(param.R2i).addPointA(p96.cx, iyk * p96.cy).addSegArc(R92, false, iyk > 0 ? false : true).addCornerRounded(param.R2i).addSegStrokeA(p94.cx, iyk * p94.cy).addCornerRounded(param.R2i).addPointA(p63.cx, iyk * p63.cy).addSegArc(R94, false, iyk > 0 ? true : false).closeSegStroke();
|
|
2665
2668
|
return rCtr;
|
|
2666
2669
|
};
|
|
2667
2670
|
var ctrE4 = ctrE42;
|
|
2668
2671
|
figExtern.addMainOI([ctrPlate, ctrE42(1), ctrE42(-1), ...hollowL, ...hollowR]);
|
|
2672
|
+
} else {
|
|
2673
|
+
figExtern.addMainOI([ctrPlate, hollowL[0], hollowR[0]]);
|
|
2669
2674
|
}
|
|
2670
2675
|
}
|
|
2671
2676
|
figExtern.mergeFigure(figPlate, true);
|
|
@@ -3167,8 +3172,8 @@ var pDef8 = {
|
|
|
3167
3172
|
pNumber8("T1", "mm", 5, 1, 100, 1),
|
|
3168
3173
|
pNumber8("T3", "mm", 3, 1, 100, 1),
|
|
3169
3174
|
pNumber8("E1", "mm", 0.5, -10, 10, 0.1),
|
|
3170
|
-
pNumber8("E2", "mm", 0.
|
|
3171
|
-
pNumber8("E3", "mm", 0.
|
|
3175
|
+
pNumber8("E2", "mm", 0.4, -10, 10, 0.1),
|
|
3176
|
+
pNumber8("E3", "mm", 0.7, -10, 10, 0.1),
|
|
3172
3177
|
pSectionSeparator8("Base"),
|
|
3173
3178
|
pNumber8("L3", "mm", 30, 0, 1e3, 1),
|
|
3174
3179
|
pNumber8("L4", "mm", 20, 1, 100, 1),
|
|
@@ -3300,7 +3305,7 @@ function pGeom8(t, param, suffix = "") {
|
|
|
3300
3305
|
const EH23 = 2 * (param.EH2 + param.EH3);
|
|
3301
3306
|
for (let ii = param.NB - 1; ii >= 0; ii--) {
|
|
3302
3307
|
BD2[ii] = BD2[ii + 1] * param.DA + param.DB;
|
|
3303
|
-
BH1[ii] = BH1[ii + 1] + 2 *
|
|
3308
|
+
BH1[ii] = BH1[ii + 1] + 2 * param.EH2 + param.E1;
|
|
3304
3309
|
}
|
|
3305
3310
|
const BR2 = BD2.map((aD1) => aD1 / 2);
|
|
3306
3311
|
const CH1 = BH1[0];
|
|
@@ -3429,7 +3434,7 @@ function pGeom8(t, param, suffix = "") {
|
|
|
3429
3434
|
}
|
|
3430
3435
|
figSide.mergeFigure(figAxisCut2(posX + BR2[ii] - ER1, posY, BH1[ii] + EH23));
|
|
3431
3436
|
axisT3d[ii].addTranslation(0, 0, posY);
|
|
3432
|
-
posY += param.EH2 + param.E1;
|
|
3437
|
+
posY += param.EH2 + param.E1 / 2;
|
|
3433
3438
|
legT3d[ii].addTranslation(0, 0, posY);
|
|
3434
3439
|
figSide.mergeFigure(scaraLegGeom[ii].fig.faceSide.translate(posX, posY));
|
|
3435
3440
|
}
|
|
@@ -3540,6 +3545,7 @@ import {
|
|
|
3540
3545
|
designParam as designParam2,
|
|
3541
3546
|
checkGeom as checkGeom2,
|
|
3542
3547
|
prefixLog as prefixLog2,
|
|
3548
|
+
point as point5,
|
|
3543
3549
|
contourCircle as contourCircle8,
|
|
3544
3550
|
ctrRectangle as ctrRectangle8,
|
|
3545
3551
|
figure as figure9,
|
|
@@ -3550,17 +3556,17 @@ import {
|
|
|
3550
3556
|
pDropdown as pDropdown6,
|
|
3551
3557
|
pSectionSeparator as pSectionSeparator9,
|
|
3552
3558
|
initGeom as initGeom9,
|
|
3553
|
-
transform2d as transform2d2,
|
|
3554
3559
|
transform3d as transform3d2,
|
|
3555
3560
|
EExtrude as EExtrude9,
|
|
3556
3561
|
EBVolume as EBVolume9
|
|
3557
3562
|
} from "geometrix";
|
|
3563
|
+
import { triLLLrAAA, triLLLrA } from "triangule";
|
|
3558
3564
|
var pDef9 = {
|
|
3559
3565
|
// partName is used in URL. Choose a name without slash, backslash and space.
|
|
3560
3566
|
partName: "losange",
|
|
3561
3567
|
params: [
|
|
3562
3568
|
//pNumber(name, unit, init, min, max, step)
|
|
3563
|
-
|
|
3569
|
+
//pNumber('L0', 'mm', 100, 1, 1000, 1),
|
|
3564
3570
|
pNumber9("LA1", "mm", 200, 1, 1e3, 1),
|
|
3565
3571
|
pNumber9("LA2", "mm", 200, 1, 1e3, 1),
|
|
3566
3572
|
pNumber9("LB1", "mm", 200, 1, 1e3, 1),
|
|
@@ -3574,39 +3580,30 @@ var pDef9 = {
|
|
|
3574
3580
|
pNumber9("DBe", "mm", 70, 1, 1e3, 1),
|
|
3575
3581
|
pNumber9("DEi", "mm", 10, 1, 1e3, 1),
|
|
3576
3582
|
pNumber9("DEe", "mm", 30, 1, 1e3, 1),
|
|
3577
|
-
pSectionSeparator9("
|
|
3578
|
-
pNumber9("
|
|
3579
|
-
pNumber9("LA", "L-factor", 1, 0.1, 10, 0.1),
|
|
3580
|
-
pNumber9("LB", "L-add", 0, -10, 100, 0.1),
|
|
3581
|
-
pNumber9("DA", "D-factor", 1, 0.1, 10, 0.1),
|
|
3582
|
-
pNumber9("DB", "D-add", 0, -10, 100, 0.1),
|
|
3583
|
-
pSectionSeparator9("Ending parameters"),
|
|
3584
|
-
pNumber9("EL", "mm", 100, 1, 1e3, 1),
|
|
3585
|
-
pNumber9("ED2", "mm", 60, 1, 1e3, 1),
|
|
3586
|
-
pNumber9("EH1", "mm", 50, 1, 1e3, 1),
|
|
3587
|
-
pSectionSeparator9("Constant parameters"),
|
|
3588
|
-
pNumber9("EH2", "mm", 10, 1, 1e3, 1),
|
|
3589
|
-
pNumber9("EH3", "mm", 10, 0, 1e3, 1),
|
|
3590
|
-
pNumber9("ED1", "mm", 20, 1, 1e3, 1),
|
|
3591
|
-
pNumber9("T1", "mm", 5, 1, 100, 1),
|
|
3583
|
+
pSectionSeparator9("Wall thickness"),
|
|
3584
|
+
pNumber9("T1", "mm", 4, 1, 100, 1),
|
|
3592
3585
|
pNumber9("T3", "mm", 3, 1, 100, 1),
|
|
3586
|
+
pNumber9("S12", "mm", 1, 0, 100, 1),
|
|
3587
|
+
pNumber9("Ri", "mm", 1, 0, 10, 0.1),
|
|
3588
|
+
pNumber9("Re", "mm", 0.4, 0, 10, 0.1),
|
|
3589
|
+
pNumber9("E2", "mm", 0.4, -10, 10, 0.1),
|
|
3590
|
+
pNumber9("E3", "mm", 0.7, -10, 10, 0.1),
|
|
3591
|
+
pSectionSeparator9("Heights"),
|
|
3592
|
+
pNumber9("EH1", "mm", 50, 1, 1e3, 1),
|
|
3593
|
+
pNumber9("EH2", "mm", 8, 1, 1e3, 1),
|
|
3594
|
+
pNumber9("EH3", "mm", 15, 0, 1e3, 1),
|
|
3593
3595
|
pNumber9("E1", "mm", 0.5, -10, 10, 0.1),
|
|
3594
|
-
pNumber9("E2", "mm", 0.5, -10, 10, 0.1),
|
|
3595
|
-
pNumber9("E3", "mm", 0.5, -10, 10, 0.1),
|
|
3596
3596
|
pSectionSeparator9("Base"),
|
|
3597
3597
|
pNumber9("L3", "mm", 30, 0, 1e3, 1),
|
|
3598
3598
|
pNumber9("L4", "mm", 20, 1, 100, 1),
|
|
3599
|
+
pNumber9("A5", "degree", 90, 0, 180, 1),
|
|
3599
3600
|
pNumber9("W5", "mm", 40, 1, 1e3, 1),
|
|
3601
|
+
pNumber9("W6", "mm", 10, 0, 1e3, 1),
|
|
3600
3602
|
pNumber9("R34", "mm", 2, 0, 10, 0.1),
|
|
3601
3603
|
pNumber9("T4", "mm", 10, 1, 100, 1),
|
|
3602
|
-
pSectionSeparator9("Base back"),
|
|
3603
3604
|
pNumber9("W8", "mm", 20, 1, 1e3, 1),
|
|
3604
3605
|
pNumber9("H8", "mm", 30, 1, 1e3, 1),
|
|
3605
3606
|
pNumber9("D8", "mm", 5, 1, 1e3, 1),
|
|
3606
|
-
pSectionSeparator9("Leg details"),
|
|
3607
|
-
pNumber9("S12", "mm", 1, 0, 100, 1),
|
|
3608
|
-
pNumber9("Ri", "mm", 1, 0, 10, 0.1),
|
|
3609
|
-
pNumber9("Re", "mm", 0.4, 0, 10, 0.1),
|
|
3610
3607
|
pSectionSeparator9("Assembly"),
|
|
3611
3608
|
pDropdown6("positionDriver", ["angle0", "endXY"]),
|
|
3612
3609
|
pNumber9("A0A", "degree", 0, -120, 120, 1),
|
|
@@ -3625,7 +3622,7 @@ var pDef9 = {
|
|
|
3625
3622
|
])
|
|
3626
3623
|
],
|
|
3627
3624
|
paramSvg: {
|
|
3628
|
-
L0:
|
|
3625
|
+
//L0: 'losange_top.svg',
|
|
3629
3626
|
LA1: "losange_top.svg",
|
|
3630
3627
|
LA2: "losange_top.svg",
|
|
3631
3628
|
LB1: "losange_top.svg",
|
|
@@ -3638,33 +3635,27 @@ var pDef9 = {
|
|
|
3638
3635
|
DBe: "losange_top.svg",
|
|
3639
3636
|
DEi: "losange_top.svg",
|
|
3640
3637
|
DEe: "losange_top.svg",
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
EL: "losange_top.svg",
|
|
3647
|
-
ED2: "losange_top.svg",
|
|
3648
|
-
EH1: "losange_top.svg",
|
|
3649
|
-
EH2: "losange_top.svg",
|
|
3650
|
-
EH3: "losange_top.svg",
|
|
3651
|
-
ED1: "losange_top.svg",
|
|
3652
|
-
T1: "losange_top.svg",
|
|
3653
|
-
T3: "losange_top.svg",
|
|
3654
|
-
E1: "losange_top.svg",
|
|
3638
|
+
T1: "losange_axis.svg",
|
|
3639
|
+
T3: "losange_leg.svg",
|
|
3640
|
+
S12: "losange_leg.svg",
|
|
3641
|
+
Ri: "losange_leg.svg",
|
|
3642
|
+
Re: "losange_leg.svg",
|
|
3655
3643
|
E2: "losange_top.svg",
|
|
3656
|
-
E3: "
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3644
|
+
E3: "losange_axis.svg",
|
|
3645
|
+
EH1: "losange_heights.svg",
|
|
3646
|
+
EH2: "losange_heights.svg",
|
|
3647
|
+
EH3: "losange_heights.svg",
|
|
3648
|
+
E1: "losange_heights.svg",
|
|
3649
|
+
L3: "losange_base.svg",
|
|
3650
|
+
L4: "losange_base.svg",
|
|
3651
|
+
A5: "losange_base.svg",
|
|
3652
|
+
W5: "losange_base.svg",
|
|
3653
|
+
W6: "losange_base.svg",
|
|
3654
|
+
R34: "losange_base.svg",
|
|
3655
|
+
T4: "losange_heights.svg",
|
|
3656
|
+
W8: "losange_back.svg",
|
|
3657
|
+
H8: "losange_back.svg",
|
|
3658
|
+
D8: "losange_back.svg",
|
|
3668
3659
|
positionDriver: "losange_top.svg",
|
|
3669
3660
|
A0A: "losange_top.svg",
|
|
3670
3661
|
A0B: "losange_top.svg",
|
|
@@ -3684,51 +3675,106 @@ function pGeom9(t, param, suffix = "") {
|
|
|
3684
3675
|
const figTop = figure9();
|
|
3685
3676
|
const figSide = figure9();
|
|
3686
3677
|
const figBack = figure9();
|
|
3687
|
-
const
|
|
3678
|
+
const figAxis0 = figure9();
|
|
3679
|
+
const figAxisA = figure9();
|
|
3680
|
+
const figAxisB = figure9();
|
|
3681
|
+
const figAxisE = figure9();
|
|
3682
|
+
const figTopWithAxis = figure9();
|
|
3688
3683
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
3689
3684
|
`;
|
|
3690
3685
|
try {
|
|
3691
|
-
let figAxisCut2 = function(ix, iy, ih) {
|
|
3686
|
+
let figAxisCut2 = function(ix, iy, ire, ih) {
|
|
3692
3687
|
const rFig = figure9();
|
|
3693
3688
|
rFig.addMainO(ctrRectangle8(ix, iy, param.T1, ih));
|
|
3694
|
-
rFig.addMainO(ctrRectangle8(ix + 2 *
|
|
3689
|
+
rFig.addMainO(ctrRectangle8(ix + 2 * ire - param.T1, iy, param.T1, ih));
|
|
3695
3690
|
return rFig;
|
|
3696
3691
|
};
|
|
3697
3692
|
var figAxisCut = figAxisCut2;
|
|
3698
|
-
const
|
|
3699
|
-
const
|
|
3700
|
-
const
|
|
3693
|
+
const legNb = 4;
|
|
3694
|
+
const axisNb = 5;
|
|
3695
|
+
const H22 = 2 * param.EH2 + param.E1;
|
|
3696
|
+
const H122 = param.EH1 + H22;
|
|
3697
|
+
const H124 = H122 + H22;
|
|
3698
|
+
const LR1e = [param.D0e / 2, param.DAe / 2, param.D0e / 2, param.DBe / 2];
|
|
3699
|
+
const LR1i = [param.D0i / 2, param.DAi / 2, param.D0i / 2, param.DBi / 2];
|
|
3700
|
+
const LR2e = [param.DAe / 2, param.DEe / 2, param.DBe / 2, param.DEe / 2];
|
|
3701
|
+
const LR2i = [param.DAi / 2, param.DEi / 2, param.DBi / 2, param.DEi / 2];
|
|
3702
|
+
const LL = [param.LA1, param.LA2, param.LB1, param.LB2];
|
|
3703
|
+
const LH = [H124, H122, H124, param.EH1];
|
|
3704
|
+
const ARee = [param.D0e / 2, param.DAe / 2, param.DBe / 2, param.DEe / 2];
|
|
3705
|
+
const ARe = [param.D0i / 2, param.DAi / 2, param.DBi / 2, param.DEi / 2];
|
|
3706
|
+
const ARi = ARe.map((iR) => iR - param.T1);
|
|
3701
3707
|
const R8 = param.D8 / 2;
|
|
3702
|
-
const
|
|
3703
|
-
const
|
|
3704
|
-
const BL = Array(param.NB).fill(param.EL);
|
|
3705
|
-
const BD2 = Array(param.NB + 1).fill(param.ED2);
|
|
3706
|
-
const BH1 = Array(param.NB + 1).fill(param.EH1);
|
|
3707
|
-
for (let ii = param.NB - 2; ii >= 0; ii--) {
|
|
3708
|
-
BL[ii] = BL[ii + 1] * param.LA + param.LB;
|
|
3709
|
-
}
|
|
3708
|
+
const pi2 = Math.PI / 2;
|
|
3709
|
+
const Ltot = Math.min(LL[0] + LL[1], LL[2] + LL[3]);
|
|
3710
3710
|
const EH23 = 2 * (param.EH2 + param.EH3);
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
const
|
|
3716
|
-
const
|
|
3717
|
-
const
|
|
3718
|
-
const
|
|
3719
|
-
const
|
|
3720
|
-
const
|
|
3721
|
-
const
|
|
3722
|
-
const
|
|
3723
|
-
const
|
|
3711
|
+
const CH1 = H124 + H22;
|
|
3712
|
+
const cH41 = param.EH2 + param.E1 / 2;
|
|
3713
|
+
const Cidx = ["0", "A", "E", "0", "B", "E"];
|
|
3714
|
+
const axisHa = [CH1, LH[0], LH[1]];
|
|
3715
|
+
const axisHb = [CH1, LH[2], LH[3] + 2 * cH41];
|
|
3716
|
+
const axisHc = axisHa.concat(axisHb);
|
|
3717
|
+
const LR1eA = [LR1e[0], LR1e[1], LR2e[1]];
|
|
3718
|
+
const LR1eB = [LR1e[2], LR1e[3], LR2e[3]];
|
|
3719
|
+
const LR1iA = [LR1i[0], LR1i[1], LR2i[1]];
|
|
3720
|
+
const LR1iB = [LR1i[2], LR1i[3], LR2i[3]];
|
|
3721
|
+
const Htot = axisHa[0] + EH23;
|
|
3722
|
+
const a5 = degToRad6(param.A5) / 2;
|
|
3723
|
+
const W7 = 2 * param.W5 * Math.cos(a5) + param.W6;
|
|
3724
|
+
const X8 = (W7 - param.W8) / 2;
|
|
3724
3725
|
const Y8 = (CH1 - param.H8) / 2;
|
|
3725
|
-
const
|
|
3726
|
-
const
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3726
|
+
const pA0 = point5(0, param.L4).translatePolar(a5, param.W5 / 2).translatePolar(a5 + pi2, param.L3 + LR1e[0]);
|
|
3727
|
+
const pB0 = point5(W7, param.L4).translatePolar(Math.PI - a5, param.W5 / 2).translatePolar(pi2 - a5, param.L3 + LR1e[0]);
|
|
3728
|
+
let a0A = degToRad6(param.A0A);
|
|
3729
|
+
let a0B = degToRad6(param.A0B);
|
|
3730
|
+
if (param.positionDriver === 1) {
|
|
3731
|
+
const ba0A = Math.atan2(param.Ey - pA0.cy, param.Ex - pA0.cx);
|
|
3732
|
+
const ba0B = Math.atan2(param.Ey - pB0.cy, param.Ex - pB0.cx);
|
|
3733
|
+
const lA02 = Math.sqrt((param.Ey - pA0.cy) ** 2 + (param.Ex - pA0.cx) ** 2);
|
|
3734
|
+
const lB02 = Math.sqrt((param.Ey - pB0.cy) ** 2 + (param.Ex - pB0.cx) ** 2);
|
|
3735
|
+
const [aA0p, tStr2] = triLLLrA(lA02, param.LA2, param.LA1);
|
|
3736
|
+
const [aB0p, tStr3] = triLLLrA(param.LA1, param.LA2, lB02);
|
|
3737
|
+
a0A = ba0A + aA0p - pi2;
|
|
3738
|
+
a0B = ba0B - aB0p - pi2;
|
|
3739
|
+
rGeome.logstr += tStr2 + tStr3;
|
|
3740
|
+
}
|
|
3741
|
+
const LA = [pi2 + a0A, 0, pi2 + a0B, 0];
|
|
3742
|
+
const pA1 = pA0.translatePolar(LA[0], LL[0]);
|
|
3743
|
+
const pB1 = pB0.translatePolar(LA[2], LL[2]);
|
|
3744
|
+
const Lpt = [pA0, pA1, pB0, pB1];
|
|
3745
|
+
const L0 = pA0.distanceToPoint(pB0);
|
|
3746
|
+
const lAB = pA1.distanceToPoint(pB1);
|
|
3747
|
+
const aAB = pA1.angleToPoint(pB1);
|
|
3748
|
+
const [ta31, ta12, ta23, tStr1] = triLLLrAAA(LL[1], lAB, LL[3]);
|
|
3749
|
+
LA[1] = aAB + ta12;
|
|
3750
|
+
LA[3] = Math.PI + aAB - ta23;
|
|
3751
|
+
const pA2 = pA1.translatePolar(LA[1], LL[1]);
|
|
3752
|
+
const pB2 = pB1.translatePolar(LA[3], LL[3]);
|
|
3753
|
+
if (pA2.distanceToPoint(pB2) > 0.1) {
|
|
3754
|
+
throw `err215: pA2 x ${ffix8(pA2.cx)} y ${ffix8(pA2.cy)} is too far from pB2 x ${ffix8(pB2.cx)} y ${ffix8(pB2.cy)}`;
|
|
3755
|
+
}
|
|
3756
|
+
const eX = pA2.cx;
|
|
3757
|
+
const eY = pA2.cy;
|
|
3758
|
+
const eA = pA2.angleOrig();
|
|
3759
|
+
const eL = pA2.distanceOrig();
|
|
3760
|
+
const aA2B2 = ta31;
|
|
3761
|
+
const fabStepX = 2.4 * Math.max(...LR1e, ...LR2e);
|
|
3762
|
+
const fabY1 = fabStepX / 2;
|
|
3763
|
+
const fabY2 = fabY1 + fabStepX;
|
|
3764
|
+
const fabY3 = fabY2 + Math.max(...LL) + fabStepX;
|
|
3765
|
+
for (let ii = 0; ii < legNb; ii++) {
|
|
3766
|
+
if (LR1e[ii] < LR1i[ii] + 2 * param.T3) {
|
|
3767
|
+
throw `err197: idx ${ii} LR1e ${ffix8(2 * LR1e[ii])} is too small compare to LR1i ${ffix8(2 * LR1i[ii])} and T3 ${ffix8(param.T3)}`;
|
|
3768
|
+
}
|
|
3769
|
+
if (LR2e[ii] < LR2i[ii] + 2 * param.T3) {
|
|
3770
|
+
throw `err200: idx ${ii} LR2e[ii] ${ffix8(2 * LR2e[ii])} is too small compare to LR2i ${ffix8(2 * LR2i[ii])} and T3 ${ffix8(param.T3)}`;
|
|
3771
|
+
}
|
|
3772
|
+
if (LL[ii] < LR1e[ii] + LR2e[ii]) {
|
|
3773
|
+
throw `err203: idx ${ii} LL ${ffix8(LL[ii])} is too small compare to LR1e ${ffix8(LR1e[ii])} and LR2e ${ffix8(LR2e[ii])}`;
|
|
3774
|
+
}
|
|
3775
|
+
if (ARi[ii] < 0) {
|
|
3776
|
+
throw `err206: idx ${ii} ARe ${ffix8(2 * ARe[ii])} is too small compare to T1 ${ffix8(param.T1)}`;
|
|
3777
|
+
}
|
|
3732
3778
|
}
|
|
3733
3779
|
if (X8 < R8) {
|
|
3734
3780
|
throw `err195: W5 ${ffix8(param.W5)} is too small compare to D8 ${ffix8(2 * R8)} and W8 ${ffix8(param.W8)}`;
|
|
@@ -3736,28 +3782,27 @@ function pGeom9(t, param, suffix = "") {
|
|
|
3736
3782
|
if (Y8 < R8) {
|
|
3737
3783
|
throw `err198: H1 ${ffix8(CH1)} is too small compare to D8 ${ffix8(2 * R8)} and H8 ${ffix8(param.H8)}`;
|
|
3738
3784
|
}
|
|
3739
|
-
|
|
3740
|
-
rGeome.logstr += "warn125: Warning H3 is zero\n";
|
|
3741
|
-
}
|
|
3785
|
+
rGeome.logstr += tStr1;
|
|
3742
3786
|
rGeome.logstr += `length ${ffix8(Ltot)} height ${ffix8(Htot)}
|
|
3743
3787
|
`;
|
|
3744
|
-
rGeome.logstr += `
|
|
3788
|
+
rGeome.logstr += `Position: X ${ffix8(eX)} Y ${ffix8(eY)} mm
|
|
3745
3789
|
`;
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3790
|
+
rGeome.logstr += `Position: A ${ffix8(radToDeg7(eA))} degree L ${ffix8(eL)} mm
|
|
3791
|
+
`;
|
|
3792
|
+
rGeome.logstr += `L0 ${ffix8(L0)} mm aA2B2 ${ffix8(radToDeg7(aA2B2))} degree
|
|
3793
|
+
`;
|
|
3794
|
+
rGeome.logstr += `Angle0 A0A ${ffix8(radToDeg7(a0A))} A0B ${ffix8(radToDeg7(a0B))} degree
|
|
3749
3795
|
`;
|
|
3750
|
-
}
|
|
3751
3796
|
const scarabaseParam = designParam2(scarabaseDef.pDef, "");
|
|
3752
|
-
scarabaseParam.setVal("D1", 2 *
|
|
3753
|
-
scarabaseParam.setVal("D2", 2 *
|
|
3797
|
+
scarabaseParam.setVal("D1", 2 * LR1i[0] + param.E3);
|
|
3798
|
+
scarabaseParam.setVal("D2", 2 * LR1e[0]);
|
|
3754
3799
|
scarabaseParam.setVal("L3", param.L3);
|
|
3755
3800
|
scarabaseParam.setVal("L4", param.L4);
|
|
3756
3801
|
scarabaseParam.setVal("W5", param.W5);
|
|
3757
|
-
scarabaseParam.setVal("Nac",
|
|
3802
|
+
scarabaseParam.setVal("Nac", 1);
|
|
3758
3803
|
scarabaseParam.setVal("R34", param.R34);
|
|
3759
|
-
scarabaseParam.setVal("A5",
|
|
3760
|
-
scarabaseParam.setVal("W6",
|
|
3804
|
+
scarabaseParam.setVal("A5", param.A5);
|
|
3805
|
+
scarabaseParam.setVal("W6", param.W6);
|
|
3761
3806
|
scarabaseParam.setVal("T3", param.T3);
|
|
3762
3807
|
scarabaseParam.setVal("T4", param.T4);
|
|
3763
3808
|
scarabaseParam.setVal("H1", CH1);
|
|
@@ -3775,31 +3820,31 @@ function pGeom9(t, param, suffix = "") {
|
|
|
3775
3820
|
rGeome.logstr += prefixLog2(scarabaseGeom.logstr, scarabaseParam.getPartNameSuffix());
|
|
3776
3821
|
const scaraLegParam = [];
|
|
3777
3822
|
const scaraLegGeom = [];
|
|
3778
|
-
for (let ii = 0; ii <
|
|
3823
|
+
for (let ii = 0; ii < legNb; ii++) {
|
|
3779
3824
|
const iiParam = designParam2(scaraDef.pDef, (ii + 1).toString());
|
|
3780
|
-
iiParam.setVal("L1",
|
|
3781
|
-
iiParam.setVal("D11",
|
|
3782
|
-
iiParam.setVal("D12",
|
|
3783
|
-
iiParam.setVal("D21", 2 *
|
|
3784
|
-
iiParam.setVal("D22",
|
|
3825
|
+
iiParam.setVal("L1", LL[ii]);
|
|
3826
|
+
iiParam.setVal("D11", 2 * LR1i[ii] + param.E2);
|
|
3827
|
+
iiParam.setVal("D12", 2 * LR1e[ii]);
|
|
3828
|
+
iiParam.setVal("D21", 2 * LR2i[ii] + (ii < 3 ? param.E3 : param.E2));
|
|
3829
|
+
iiParam.setVal("D22", 2 * LR2e[ii]);
|
|
3785
3830
|
iiParam.setVal("firstEnd", 0);
|
|
3786
|
-
iiParam.setVal("secondEnd", 0);
|
|
3831
|
+
iiParam.setVal("secondEnd", ii < 3 ? 0 : 1);
|
|
3787
3832
|
iiParam.setVal("A1", 90);
|
|
3788
3833
|
iiParam.setVal("T1", param.T3);
|
|
3789
3834
|
iiParam.setVal("T2", param.T3);
|
|
3790
|
-
iiParam.setVal("S2",
|
|
3835
|
+
iiParam.setVal("S2", LR2e[ii] + param.S12);
|
|
3791
3836
|
iiParam.setVal("R1i", param.Ri);
|
|
3792
3837
|
iiParam.setVal("R1e", param.Re);
|
|
3793
3838
|
iiParam.setVal("iiEn", 1);
|
|
3794
3839
|
iiParam.setVal("N2", 2);
|
|
3795
|
-
iiParam.setVal("S1",
|
|
3840
|
+
iiParam.setVal("S1", LR1e[ii] + param.S12);
|
|
3796
3841
|
iiParam.setVal("T3", param.T3);
|
|
3797
3842
|
iiParam.setVal("R2i", param.Ri);
|
|
3798
3843
|
iiParam.setVal("R2e", param.Re);
|
|
3799
|
-
iiParam.setVal("H1",
|
|
3844
|
+
iiParam.setVal("H1", LH[ii]);
|
|
3800
3845
|
iiParam.setVal("H2", param.EH2);
|
|
3801
|
-
iiParam.setVal("H3", param.EH3);
|
|
3802
|
-
iiParam.setVal("H41", 0);
|
|
3846
|
+
iiParam.setVal("H3", ii < 3 ? param.EH3 : 0);
|
|
3847
|
+
iiParam.setVal("H41", ii < 3 ? 0 : cH41);
|
|
3803
3848
|
iiParam.setVal("H42", 0);
|
|
3804
3849
|
const iiGeom = scaraDef.pGeom(0, iiParam.getParamVal(), iiParam.getSuffix());
|
|
3805
3850
|
checkGeom2(iiGeom);
|
|
@@ -3809,65 +3854,116 @@ function pGeom9(t, param, suffix = "") {
|
|
|
3809
3854
|
}
|
|
3810
3855
|
figTop.mergeFigure(scarabaseGeom.fig.faceT3);
|
|
3811
3856
|
const legT3d = [];
|
|
3812
|
-
const
|
|
3813
|
-
for (let ii = 0; ii <
|
|
3814
|
-
const iiT2d = transform2d2().addRotation(pi2 + PA[ii]);
|
|
3815
|
-
for (let jj = ii; jj > 0; jj--) {
|
|
3816
|
-
iiT2d.addTranslation(0, BL[jj - 1]).addRotation(PA[jj - 1]);
|
|
3817
|
-
}
|
|
3818
|
-
iiT2d.addTranslation(W52, L432);
|
|
3819
|
-
const iiTa = iiT2d.getRotation();
|
|
3820
|
-
const [iiTx, iiTy] = iiT2d.getTranslation();
|
|
3857
|
+
const axisT3d4 = [];
|
|
3858
|
+
for (let ii = 0; ii < legNb; ii++) {
|
|
3821
3859
|
legT3d.push(
|
|
3822
|
-
transform3d2().addTranslation(-
|
|
3860
|
+
transform3d2().addTranslation(-LR1e[ii], 0, 0).addRotation(0, 0, LA[ii]).addTranslation(Lpt[ii].cx, Lpt[ii].cy, 0)
|
|
3861
|
+
);
|
|
3862
|
+
axisT3d4.push(
|
|
3863
|
+
transform3d2().addRotation(0, 0, LA[ii]).addTranslation(Lpt[ii].cx, Lpt[ii].cy, 0)
|
|
3823
3864
|
);
|
|
3824
|
-
axisT3d.push(transform3d2().addRotation(0, 0, iiTa).addTranslation(iiTx, iiTy, 0));
|
|
3825
3865
|
figTop.mergeFigure(
|
|
3826
|
-
scaraLegGeom[ii].fig.faceExtern.translate(-
|
|
3866
|
+
scaraLegGeom[ii].fig.faceExtern.translate(-LR1e[ii], 0).rotate(0, 0, LA[ii]).translate(Lpt[ii].cx, Lpt[ii].cy)
|
|
3827
3867
|
);
|
|
3828
3868
|
}
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3869
|
+
const axisT3dE = transform3d2().addTranslation(pA2.cx, pA2.cy, 0);
|
|
3870
|
+
const axisT3dE2 = transform3d2().addTranslation(pA2.cx, pA2.cy, 0);
|
|
3871
|
+
const axisT3d6 = [axisT3d4[0], axisT3d4[1], axisT3dE, axisT3d4[2], axisT3d4[3], axisT3dE2];
|
|
3872
|
+
const Yoffset = Htot * 1.5;
|
|
3873
|
+
const lineNb = 2;
|
|
3874
|
+
const axisPerLine = axisHa.length;
|
|
3875
|
+
for (let jj = 0; jj < lineNb; jj++) {
|
|
3876
|
+
figSide.mergeFigure(scarabaseGeom.fig.faceSide.translate(0, jj * Yoffset));
|
|
3877
|
+
let posX = param.L4 + param.L3;
|
|
3878
|
+
const posYb = jj * Yoffset;
|
|
3879
|
+
let posY = 0;
|
|
3880
|
+
const jjAxisH = jj === 0 ? axisHa : axisHb;
|
|
3881
|
+
const jjLR1e = jj === 0 ? LR1eA : LR1eB;
|
|
3882
|
+
const jjLR1i = jj === 0 ? LR1iA : LR1iB;
|
|
3883
|
+
const jjLL = jj === 0 ? LL.slice(0, 2) : LL.slice(2, 4);
|
|
3884
|
+
for (let ii = 0; ii < axisPerLine; ii++) {
|
|
3885
|
+
if (ii > 0) {
|
|
3886
|
+
posX += jjLR1e[ii - 1] + jjLL[ii - 1] - jjLR1e[ii];
|
|
3887
|
+
}
|
|
3888
|
+
figSide.mergeFigure(
|
|
3889
|
+
figAxisCut2(
|
|
3890
|
+
posX + jjLR1e[ii] - jjLR1i[ii],
|
|
3891
|
+
posY + posYb,
|
|
3892
|
+
jjLR1i[ii],
|
|
3893
|
+
jjAxisH[ii] + EH23
|
|
3894
|
+
)
|
|
3895
|
+
);
|
|
3896
|
+
const jji6 = ii + jj * axisPerLine;
|
|
3897
|
+
axisT3d6[jji6].addTranslation(0, 0, posY);
|
|
3898
|
+
posY += param.EH2 + param.E1 / 2;
|
|
3899
|
+
const posY2 = jji6 === 4 ? posY + param.EH3 : posY;
|
|
3900
|
+
if (ii < axisPerLine - 1) {
|
|
3901
|
+
const jji4 = ii + jj * (axisPerLine - 1);
|
|
3902
|
+
legT3d[jji4].addTranslation(0, 0, posY2);
|
|
3903
|
+
figSide.mergeFigure(
|
|
3904
|
+
scaraLegGeom[jji4].fig.faceSide.translate(posX, posY2 + posYb)
|
|
3905
|
+
);
|
|
3906
|
+
}
|
|
3835
3907
|
}
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3908
|
+
}
|
|
3909
|
+
const checkZ2 = axisT3d6[2].getTranslation()[2];
|
|
3910
|
+
const checkZ5 = axisT3d6[5].getTranslation()[2];
|
|
3911
|
+
if (Math.abs(checkZ2 - checkZ5) > 1e-3) {
|
|
3912
|
+
throw `err396: axisT3d6[2] ${ffix8(checkZ2)} and axisT3d6[5] ${ffix8(checkZ5)} differ`;
|
|
3841
3913
|
}
|
|
3842
3914
|
figBack.mergeFigure(scarabaseGeom.fig.faceBack);
|
|
3843
|
-
|
|
3844
|
-
|
|
3915
|
+
figAxis0.addMainOI([contourCircle8(0, 0, ARe[0]), contourCircle8(0, 0, ARi[0])]);
|
|
3916
|
+
figAxis0.addSecond(contourCircle8(0, 0, ARe[0] + param.T3));
|
|
3917
|
+
figAxis0.addSecond(contourCircle8(0, 0, ARee[0] - param.T3));
|
|
3918
|
+
figAxis0.addSecond(contourCircle8(0, 0, ARee[0]));
|
|
3919
|
+
figTopWithAxis.mergeFigure(figAxis0.translate(Lpt[0].cx, Lpt[0].cy));
|
|
3920
|
+
figTopWithAxis.mergeFigure(figAxis0.translate(Lpt[2].cx, Lpt[2].cy));
|
|
3921
|
+
figAxisA.addMainOI([contourCircle8(0, 0, ARe[1]), contourCircle8(0, 0, ARi[1])]);
|
|
3922
|
+
figAxisA.addSecond(contourCircle8(0, 0, ARe[1] + param.T3));
|
|
3923
|
+
figAxisA.addSecond(contourCircle8(0, 0, ARee[1] - param.T3));
|
|
3924
|
+
figAxisA.addSecond(contourCircle8(0, 0, ARee[1]));
|
|
3925
|
+
figTopWithAxis.mergeFigure(figAxisA.translate(Lpt[1].cx, Lpt[1].cy));
|
|
3926
|
+
figAxisB.addMainOI([contourCircle8(0, 0, ARe[2]), contourCircle8(0, 0, ARi[2])]);
|
|
3927
|
+
figAxisB.addSecond(contourCircle8(0, 0, ARe[2] + param.T3));
|
|
3928
|
+
figAxisB.addSecond(contourCircle8(0, 0, ARee[2] - param.T3));
|
|
3929
|
+
figAxisB.addSecond(contourCircle8(0, 0, ARee[2]));
|
|
3930
|
+
figTopWithAxis.mergeFigure(figAxisB.translate(Lpt[3].cx, Lpt[3].cy));
|
|
3931
|
+
figAxisE.addMainOI([contourCircle8(0, 0, ARe[3]), contourCircle8(0, 0, ARi[3])]);
|
|
3932
|
+
figAxisE.addSecond(contourCircle8(0, 0, ARe[3] + param.T3));
|
|
3933
|
+
figAxisE.addSecond(contourCircle8(0, 0, ARee[3] - param.T3));
|
|
3934
|
+
figAxisE.addSecond(contourCircle8(0, 0, ARee[3]));
|
|
3935
|
+
figTopWithAxis.mergeFigure(figAxisE.translate(pA2.cx, pA2.cy));
|
|
3936
|
+
figTopWithAxis.mergeFigure(figTop);
|
|
3845
3937
|
rGeome.fig = {
|
|
3846
3938
|
faceTop: figTop,
|
|
3847
3939
|
faceSide: figSide,
|
|
3848
3940
|
faceBack: figBack,
|
|
3849
|
-
|
|
3941
|
+
faceAxis0: figAxis0,
|
|
3942
|
+
faceAxisA: figAxisA,
|
|
3943
|
+
faceAxisB: figAxisB,
|
|
3944
|
+
faceAxisE: figAxisE,
|
|
3945
|
+
faceTopWithAxis: figTopWithAxis
|
|
3850
3946
|
};
|
|
3851
3947
|
const designName = rGeome.partName;
|
|
3852
3948
|
const partInherit = [];
|
|
3853
3949
|
const partExtrude = [];
|
|
3854
3950
|
const partList = [];
|
|
3855
3951
|
if ([0, 1, 3].includes(param.output3D)) {
|
|
3856
|
-
const
|
|
3952
|
+
const baseY = param.output3D === 0 ? 0 : fabY3;
|
|
3857
3953
|
const partScarabase = {
|
|
3858
3954
|
outName: `inpax_${designName}_base`,
|
|
3859
3955
|
subdesign: "pax_scarabase",
|
|
3860
3956
|
subgeom: scarabaseGeom,
|
|
3861
3957
|
rotate: [0, 0, 0],
|
|
3862
|
-
translate: [0,
|
|
3958
|
+
translate: [0, baseY, 0]
|
|
3863
3959
|
};
|
|
3864
3960
|
partInherit.push(partScarabase);
|
|
3865
3961
|
partList.push(`inpax_${designName}_base`);
|
|
3866
3962
|
}
|
|
3867
|
-
for (let ii = 0; ii <
|
|
3963
|
+
for (let ii = 0; ii < legNb; ii++) {
|
|
3868
3964
|
if ([0, 1].includes(param.output3D) || ii - param.output3D === -4) {
|
|
3869
3965
|
const iiName = `inpax_${designName}_leg_${ii + 1}`;
|
|
3870
|
-
const iiLegT3d2 = transform3d2().addRotation(0, 0, pi2).addTranslation(
|
|
3966
|
+
const iiLegT3d2 = transform3d2().addRotation(0, 0, pi2).addTranslation(ii * fabStepX, fabY2, 0);
|
|
3871
3967
|
const iiLegT3d = param.output3D === 0 ? legT3d[ii] : iiLegT3d2;
|
|
3872
3968
|
const iiPartScaraLeg = {
|
|
3873
3969
|
outName: iiName,
|
|
@@ -3881,15 +3977,15 @@ function pGeom9(t, param, suffix = "") {
|
|
|
3881
3977
|
}
|
|
3882
3978
|
}
|
|
3883
3979
|
if ([0, 1, 2].includes(param.output3D)) {
|
|
3884
|
-
for (let ii = 0; ii <
|
|
3980
|
+
for (let ii = 0; ii < axisNb; ii++) {
|
|
3885
3981
|
const iiName = `subpax_${designName}_axis_${ii + 1}`;
|
|
3886
|
-
const iiAxisT3d2 = transform3d2().addTranslation(
|
|
3887
|
-
const iiAxisT3d = param.output3D === 0 ?
|
|
3982
|
+
const iiAxisT3d2 = transform3d2().addTranslation(ii * fabStepX, fabY1, 0);
|
|
3983
|
+
const iiAxisT3d = param.output3D === 0 ? axisT3d6[ii] : iiAxisT3d2;
|
|
3888
3984
|
const iiPartAxis = {
|
|
3889
3985
|
outName: iiName,
|
|
3890
|
-
face: `${designName}_faceAxis`,
|
|
3986
|
+
face: `${designName}_faceAxis${Cidx[ii]}`,
|
|
3891
3987
|
extrudeMethod: EExtrude9.eLinearOrtho,
|
|
3892
|
-
length:
|
|
3988
|
+
length: axisHc[ii] + EH23,
|
|
3893
3989
|
rotate: iiAxisT3d.getRotation(),
|
|
3894
3990
|
translate: iiAxisT3d.getTranslation()
|
|
3895
3991
|
};
|
|
@@ -3917,7 +4013,7 @@ function pGeom9(t, param, suffix = "") {
|
|
|
3917
4013
|
rGeome.sub = {
|
|
3918
4014
|
scaraBase: subBase
|
|
3919
4015
|
};
|
|
3920
|
-
for (let ii = 0; ii <
|
|
4016
|
+
for (let ii = 0; ii < legNb; ii++) {
|
|
3921
4017
|
const subLeg = {
|
|
3922
4018
|
partName: scaraLegParam[ii].getPartName(),
|
|
3923
4019
|
dparam: scaraLegParam[ii].getDesignParamList(),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="328.455" height="213.463" viewBox="0 0 86.904 56.479"><defs><path id="i" d="M492.775 1205.02h124.866v32.809H492.775z"/><path id="h" d="M462.832 1153.418h39.817v21.979h-39.817z"/><path id="g" d="M443.72 1112.964h50.329v32.172H443.72z"/><path id="f" d="M477.803 1172.848h45.232v40.836h-45.232z"/><path id="c" d="M444.357 1150.232h44.833v24.099h-44.833z"/><path id="b" d="M387.339 1033.011h146.845v24.846H387.339z"/><marker id="a" markerHeight="1" markerWidth="1" orient="auto-start-reverse" preserveAspectRatio="xMidYMid" refX="0" refY="0" style="overflow:visible" viewBox="0 0 1 1"><path d="M3-3 0 0l3 3" style="fill:none;stroke:context-stroke;stroke-width:1;stroke-linecap:butt" transform="rotate(180 .125 0)"/></marker><marker id="d" markerHeight="1" markerWidth="1" orient="auto-start-reverse" preserveAspectRatio="xMidYMid" refX="0" refY="0" style="overflow:visible" viewBox="0 0 1 1"><path d="M3-3 0 0l3 3" style="fill:none;stroke:context-stroke;stroke-width:1;stroke-linecap:butt" transform="rotate(180 .125 0)"/></marker><marker id="e" markerHeight="1" markerWidth="1" orient="auto-start-reverse" preserveAspectRatio="xMidYMid" refX="0" refY="0" style="overflow:visible" viewBox="0 0 1 1"><path d="M3-3 0 0l3 3" style="fill:none;stroke:context-stroke;stroke-width:1;stroke-linecap:butt" transform="rotate(180 .125 0)"/></marker></defs><g transform="translate(-55.83 -270.91)"><path d="M55.961 271.042H142.6v56.214H55.961z" style="fill:#fff;stroke:#fff;stroke-width:.264583;stroke-linejoin:round"/><ellipse cx="82.06" cy="297.615" rx="24.16" ry="24.304" style="fill:#abc837;stroke:#ccc;stroke-width:.264583;stroke-linejoin:round"/><ellipse cx="82.06" cy="297.615" rx="22.566" ry="22.701" style="fill:#fff;stroke:#ccc;stroke-width:.264583;stroke-linejoin:round"/><ellipse cx="82.06" cy="297.615" rx="18.602" ry="18.713" style="fill:#abc837;stroke:#ffd5d5;stroke-width:.264583;stroke-linejoin:round"/><ellipse cx="82.06" cy="297.615" rx="14.534" ry="14.62" style="fill:#fff;stroke:#ccc;stroke-width:.264583;stroke-linejoin:round"/><path d="m96.584 285.117 6.742-7.164" style="fill:#fff;stroke:#000;stroke-width:.264583;stroke-linejoin:round;marker-start:url(#a)"/><text xml:space="preserve" style="font-size:16px;line-height:normal;font-family:"Liberation Mono";-inkscape-font-specification:"Liberation Mono";text-decoration-color:#000;white-space:pre;shape-inside:url(#b);display:inline;fill:#000;stroke-width:1;-inkscape-stroke:none;stop-color:#000" transform="scale(.26458)"><tspan x="387.34" y="1047.248">D0i,DAi,DBi,DEi</tspan></text><path d="M104.627 297.615v23.506M106.22 297.615v23.506" style="fill:#fff;stroke:#ccc;stroke-width:.264583;stroke-linejoin:round"/><path d="M100.662 297.615h3.965" style="fill:#fff;stroke:#000;stroke-width:.264583;stroke-linejoin:round;marker-start:url(#a);marker-end:url(#a)"/><text xml:space="preserve" style="font-size:16px;line-height:normal;font-family:"Liberation Mono";-inkscape-font-specification:"Liberation Mono";text-decoration-color:#000;white-space:pre;shape-inside:url(#c);display:inline;fill:#000;stroke-width:1;-inkscape-stroke:none;stop-color:#000" transform="translate(-17.496 -12.142)scale(.26458)"><tspan x="444.357" y="1164.469">E3/2</tspan></text><path d="M100.662 321.12h3.965" style="fill:#fff;stroke:#000;stroke-width:.264583;stroke-linejoin:round;marker-end:url(#d)"/><path d="M110.185 321.12h-3.965" style="fill:#fff;stroke:#000;stroke-width:.264583;stroke-linejoin:round;marker-end:url(#e)"/><text xml:space="preserve" style="font-size:16px;line-height:normal;font-family:"Liberation Mono";-inkscape-font-specification:"Liberation Mono";text-decoration-color:#000;white-space:pre;shape-inside:url(#f);display:inline;fill:#000;stroke-width:1;-inkscape-stroke:none;stop-color:#000" transform="translate(-23.494 11.151)scale(.26458)"><tspan x="477.803" y="1187.084">T3</tspan></text><path d="M82.06 278.902v4.092" style="fill:#fff;stroke:#000;stroke-width:.264583;stroke-linejoin:round;marker-start:url(#a);marker-end:url(#a)"/><text xml:space="preserve" style="font-size:16px;line-height:normal;font-family:"Liberation Mono";-inkscape-font-specification:"Liberation Mono";text-decoration-color:#000;white-space:pre;shape-inside:url(#g);display:inline;fill:#000;stroke-width:1;-inkscape-stroke:none;stop-color:#000" transform="translate(-34.133 -15.592)scale(.26458)"><tspan x="443.721" y="1127.199">T1</tspan></text><text xml:space="preserve" style="font-size:16px;line-height:normal;font-family:"Liberation Mono";-inkscape-font-specification:"Liberation Mono";text-decoration-color:#000;white-space:pre;shape-inside:url(#h);display:inline;fill:#666;stroke-width:1;-inkscape-stroke:none;stop-color:#000" transform="translate(-34.133 -14.665)scale(.26458)"><tspan x="462.832" y="1167.654">axis</tspan></text><text xml:space="preserve" style="font-size:16px;line-height:normal;font-family:"Liberation Mono";-inkscape-font-specification:"Liberation Mono";text-decoration-color:#000;white-space:pre;shape-inside:url(#i);display:inline;fill:#666;stroke-width:1;-inkscape-stroke:none;stop-color:#000" transform="translate(-27.728 -33.796)scale(.26458)"><tspan x="492.775" y="1219.256">leg,base</tspan></text></g></svg>
|