designix 0.5.42 → 0.5.44
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 +24 -23
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1736,6 +1736,7 @@ function pGeom3(t, param, suffix = "") {
|
|
|
1736
1736
|
const figPetal = figure3();
|
|
1737
1737
|
const figButtress1 = figure3();
|
|
1738
1738
|
const figButtress2 = figure3();
|
|
1739
|
+
const figButtress12 = figure3();
|
|
1739
1740
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
1740
1741
|
`;
|
|
1741
1742
|
try {
|
|
@@ -1766,7 +1767,8 @@ function pGeom3(t, param, suffix = "") {
|
|
|
1766
1767
|
rGeome.logstr += `vaxis_holder D2-next: ${ffix5(2 * R2next)} mm
|
|
1767
1768
|
`;
|
|
1768
1769
|
const ctrOuter = function(rnl) {
|
|
1769
|
-
const
|
|
1770
|
+
const R5b = R5 + (innerR1 - R5) / 2;
|
|
1771
|
+
const rCtr = contour5(rnl * R5b, -param.PHE1 / 2).addSegStrokeR(rnl * (innerR1 - R5b), 0).addSegStrokeRP(-Math.PI / 2 + rnl * outerA, innerL2).addSegStrokeRP(-Math.PI / 2 + rnl * (Math.PI / 2 + outerA), param.PHE2).addSegStrokeRP(Math.PI / 2 + rnl * outerA, param.PHL1).addSegStrokeRP(Math.PI / 2 + rnl * (Math.PI / 2 + outerA), param.PHE2).addSegStrokeRP(-Math.PI / 2 + rnl * outerA, innerL2).addSegStrokeA(rnl * R5b, param.PHE1 / 2).closeSegStroke();
|
|
1770
1772
|
return rCtr;
|
|
1771
1773
|
};
|
|
1772
1774
|
const ctrLeg = function(rnl) {
|
|
@@ -1788,19 +1790,34 @@ function pGeom3(t, param, suffix = "") {
|
|
|
1788
1790
|
return rCtr;
|
|
1789
1791
|
};
|
|
1790
1792
|
const ctrButtress2 = function(rnl) {
|
|
1791
|
-
const rCtr = contour5(rnl * (R1 + param.PHR4), param.PHE1 / 2).addSegStrokeA(rnl * innerR2, param.PHE1 / 2).addSegStrokeRP(Math.PI / 2 + rnl * outerA, innerL2).addSegStrokeA(rnl * (R1 + param.PHR4), param.PHE1 + param.PHH1).closeSegStroke();
|
|
1793
|
+
const rCtr = contour5(rnl * (R1 + param.PHR4), param.PHE1 / 2).addSegStrokeA(rnl * innerR2, param.PHE1 / 2).addSegStrokeRP(Math.PI / 2 + rnl * outerA, innerL2).addSegStrokeA(rnl * (R1 + param.PHR4), param.PHE1 / 2 + param.PHH1).closeSegStroke();
|
|
1794
|
+
return rCtr;
|
|
1795
|
+
};
|
|
1796
|
+
const ctrButtress12 = function(rnl) {
|
|
1797
|
+
const pA = point4(rnl * innerR2, param.PHE1 / 2).translatePolar(
|
|
1798
|
+
Math.PI / 2 + rnl * outerA,
|
|
1799
|
+
innerL2
|
|
1800
|
+
);
|
|
1801
|
+
const pB = point4(rnl * innerR1, -param.PHE1 / 2).translatePolar(
|
|
1802
|
+
-Math.PI / 2 + rnl * outerA,
|
|
1803
|
+
innerL2
|
|
1804
|
+
);
|
|
1805
|
+
const innerRb = R2 - param.PHE2 / 2;
|
|
1806
|
+
const rCtr = contour5(rnl * innerRb, 0).addSegStrokeA(pA.cx, pA.cy).addSegStrokeA(rnl * (R1 + param.PHR4), param.PHE1 / 2 + param.PHH1).addSegStrokeA(rnl * (R1 + param.PHR4), param.PHE1 / 2).addSegStrokeA(rnl * (R1 + param.PHR4), -param.PHE1 / 2).addSegStrokeA(pB.cx, pB.cy).closeSegStroke();
|
|
1792
1807
|
return rCtr;
|
|
1793
1808
|
};
|
|
1794
1809
|
figOuter.addSecond(ctrButtress1(-1));
|
|
1795
1810
|
figOuter.addSecond(ctrButtress2(-1));
|
|
1796
1811
|
figButtress1.mergeFigure(figOuter, true);
|
|
1797
1812
|
figButtress2.mergeFigure(figOuter, true);
|
|
1813
|
+
figButtress12.mergeFigure(figOuter, true);
|
|
1798
1814
|
figOuter.addSecond(ctrButtress1(1));
|
|
1799
1815
|
figOuter.addSecond(ctrButtress2(1));
|
|
1800
1816
|
figButtress1.addMainO(ctrButtress1(1));
|
|
1801
1817
|
figButtress1.addSecond(ctrButtress2(1));
|
|
1802
1818
|
figButtress2.addSecond(ctrButtress1(1));
|
|
1803
1819
|
figButtress2.addMainO(ctrButtress2(1));
|
|
1820
|
+
figButtress12.addMainO(ctrButtress12(1));
|
|
1804
1821
|
const fPetal = [];
|
|
1805
1822
|
fPetal.push(contourCircle3(0, 0, innerR));
|
|
1806
1823
|
figPetal.addSecond(contourCircle3(0, 0, R2));
|
|
@@ -1821,31 +1838,19 @@ function pGeom3(t, param, suffix = "") {
|
|
|
1821
1838
|
facePetal: figPetal,
|
|
1822
1839
|
faceOuter: figOuter,
|
|
1823
1840
|
faceButtress1: figButtress1,
|
|
1824
|
-
faceButtress2: figButtress2
|
|
1841
|
+
faceButtress2: figButtress2,
|
|
1842
|
+
faceButtress12: figButtress12
|
|
1825
1843
|
};
|
|
1826
1844
|
const designName = rGeome.partName;
|
|
1827
1845
|
const tm = transform3d();
|
|
1828
1846
|
tm.addRotation(Math.PI / 2, 0, 0);
|
|
1829
1847
|
tm.addTranslation(0, param.PHE3 / 2, 0);
|
|
1830
|
-
const preExtrude1 = petalAngles.map((rota, idx) => {
|
|
1831
|
-
const tm1 = transform3d(tm.getMatrix());
|
|
1832
|
-
tm1.addRotation(0, 0, rota);
|
|
1833
|
-
const rElem = {
|
|
1834
|
-
outName: `subpax_${designName}_b1_${idx}`,
|
|
1835
|
-
face: `${designName}_faceButtress1`,
|
|
1836
|
-
extrudeMethod: EExtrude2.eLinearOrtho,
|
|
1837
|
-
length: param.PHE3,
|
|
1838
|
-
rotate: tm1.getRotation(),
|
|
1839
|
-
translate: tm1.getTranslation()
|
|
1840
|
-
};
|
|
1841
|
-
return rElem;
|
|
1842
|
-
});
|
|
1843
1848
|
const preExtrude2 = petalAngles.map((rota, idx) => {
|
|
1844
1849
|
const tm2 = transform3d(tm.getMatrix());
|
|
1845
1850
|
tm2.addRotation(0, 0, rota);
|
|
1846
1851
|
const rElem = {
|
|
1847
1852
|
outName: `subpax_${designName}_b2_${idx}`,
|
|
1848
|
-
face: `${designName}
|
|
1853
|
+
face: `${designName}_faceButtress12`,
|
|
1849
1854
|
extrudeMethod: EExtrude2.eLinearOrtho,
|
|
1850
1855
|
length: param.PHE3,
|
|
1851
1856
|
rotate: tm2.getRotation(),
|
|
@@ -1853,10 +1858,6 @@ function pGeom3(t, param, suffix = "") {
|
|
|
1853
1858
|
};
|
|
1854
1859
|
return rElem;
|
|
1855
1860
|
});
|
|
1856
|
-
const b1List = petalAngles.map((elem, idx) => {
|
|
1857
|
-
const subElem = `subpax_${designName}_b1_${idx}`;
|
|
1858
|
-
return subElem;
|
|
1859
|
-
});
|
|
1860
1861
|
const b2List = petalAngles.map((elem, idx) => {
|
|
1861
1862
|
const subElem = `subpax_${designName}_b2_${idx}`;
|
|
1862
1863
|
return subElem;
|
|
@@ -1878,7 +1879,7 @@ function pGeom3(t, param, suffix = "") {
|
|
|
1878
1879
|
rotate: [0, 0, 0],
|
|
1879
1880
|
translate: [0, 0, -param.PHE1 / 2]
|
|
1880
1881
|
},
|
|
1881
|
-
|
|
1882
|
+
//...preExtrude1,
|
|
1882
1883
|
...preExtrude2
|
|
1883
1884
|
],
|
|
1884
1885
|
volumes: [
|
|
@@ -1888,7 +1889,7 @@ function pGeom3(t, param, suffix = "") {
|
|
|
1888
1889
|
inList: [
|
|
1889
1890
|
`subpax_${designName}_petal`,
|
|
1890
1891
|
`subpax_${designName}_outer`,
|
|
1891
|
-
|
|
1892
|
+
//...b1List,
|
|
1892
1893
|
...b2List
|
|
1893
1894
|
]
|
|
1894
1895
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "designix",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.44",
|
|
4
4
|
"description": "The first designs made with parametrix",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"clean": "shx rm -fr dist dist2 node_modules"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"geometrix": "^0.5.
|
|
75
|
+
"geometrix": "^0.5.42"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@typescript-eslint/eslint-plugin": "^7.0.1",
|