!1393 优化:走刀

pull/1393/MERGE
ZoeLeeFZ 4 years ago committed by ChenX
parent 067a1ece68
commit cd1ea12635

File diff suppressed because one or more lines are too long

@ -1,284 +1,162 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`#I1MUQD 1`] = `"6522.00000"`; exports[`#I1MUQD 1`] = `"6242.00000"`;
exports[`#I1MUQD 2`] = `"6242.00000"`; exports[`#I1MUQD 2`] = `"3476.00000"`;
exports[`#I1MUQD 3`] = `"3476.00000"`; exports[`#I1MUQD 3`] = `"3476.00000"`;
exports[`#I1MUQD 4`] = `"3476.00000"`;
exports[`#I1MUQD 5`] = `"5682.00000"`;
exports[`#I1MUQD 6`] = `"6230.00000"`;
exports[`#I1MUQD 7`] = `"3464.00000"`;
exports[`#I1MUQD 8`] = `"3464.00000"`;
exports[`#I1MUQD: 走刀数量 1`] = `3`; exports[`#I1MUQD: 走刀数量 1`] = `3`;
exports[`#IYX1P 1`] = `"3600.00000"`; exports[`#IYX1P 1`] = `"1356.19421"`;
exports[`#IYX1P 2`] = `"1356.19421"`;
exports[`#IYX1P 3`] = `"1336.05705"`; exports[`#IYX1P 2`] = `"1336.05705"`;
exports[`#IYX1P 4`] = `"7179.71308"`; exports[`#IYX1P 3`] = `"7179.71308"`;
exports[`#IYX1P 5`] = `"10.71239"`; exports[`#IYX1P 4`] = `"10.71239"`;
exports[`#IYX1P 6`] = `"1483.45340"`;
exports[`#IYX1P 7`] = `"1324.90446"`;
exports[`#IYX1P: 走刀数量 1`] = `4`; exports[`#IYX1P: 走刀数量 1`] = `4`;
exports[`刀切到外轮廓情况 1`] = `"3600.00000"`; exports[`刀切到外轮廓情况 1`] = `"22596.75011"`;
exports[`刀切到外轮廓情况 2`] = `"22596.75011"`;
exports[`刀切到外轮廓情况 3`] = `"6355.24398"`;
exports[`刀切到外轮廓情况 4`] = `"1478.93939"`;
exports[`刀切到外轮廓情况 5`] = `"729.56885"`; exports[`刀切到外轮廓情况 2`] = `"6355.24398"`;
exports[`刀切到外轮廓情况 6`] = `"3600.00000"`; exports[`刀切到外轮廓情况 3`] = `"14681.46597"`;
exports[`刀切到外轮廓情况 7`] = `"14681.46597"`; exports[`刀切到外轮廓情况 4`] = `"14658.27702"`;
exports[`刀切到外轮廓情况 8`] = `"14658.27702"`; exports[`刀切到外轮廓情况 5`] = `"14681.46597"`;
exports[`刀切到外轮廓情况 9`] = `"14681.46597"`; exports[`刀切到外轮廓情况 6`] = `"14658.27702"`;
exports[`刀切到外轮廓情况 10`] = `"14658.27702"`;
exports[`刀切到外轮廓情况 11`] = `"2683.28157"`;
exports[`刀切到外轮廓情况 12`] = `"1800.00000"`;
exports[`刀切到外轮廓情况: 走刀数量 1`] = `2`; exports[`刀切到外轮廓情况: 走刀数量 1`] = `2`;
exports[`刀切到外轮廓情况: 走刀数量 2`] = `4`; exports[`刀切到外轮廓情况: 走刀数量 2`] = `4`;
exports[`复杂极限刀半径 1`] = `"4356.84083"`; exports[`包含刀路丢失#I2CW2U 1`] = `"3096.00000"`;
exports[`复杂极限刀半径 2`] = `"1073.24693"`;
exports[`复杂极限刀半径 3`] = `"36199.20990"`;
exports[`复杂极限刀半径 4`] = `"2928.44167"`; exports[`包含刀路丢失#I2CW2U 2`] = `"436.00000"`;
exports[`复杂极限刀半径 5`] = `"951.54022"`; exports[`包含刀路丢失#I2CW2U 3`] = `"436.00000"`;
exports[`复杂极限刀半径 6`] = `"3278.91793"`; exports[`包含刀路丢失#I2CW2U 4`] = `"436.00000"`;
exports[`复杂极限刀半径: 走刀数量 1`] = `3`; exports[`包含刀路丢失#I2CW2U 5`] = `"436.00000"`;
exports[`复杂造型01 1`] = `"3600.00000"`;
exports[`复杂造型01 2`] = `"39413.77528"`;
exports[`复杂造型01 3`] = `"15808.94716"`; exports[`包含刀路丢失#I2CW2U: 走刀数量 1`] = `5`;
exports[`复杂造型01 4`] = `"4413.31745"`; exports[`复杂极限刀半径 1`] = `"1073.24693"`;
exports[`复杂造型01 5`] = `"1482.45521"`; exports[`复杂极限刀半径 2`] = `"36199.20990"`;
exports[`复杂造型01 6`] = `"838.79070"`; exports[`复杂极限刀半径 3`] = `"2928.44167"`;
exports[`复杂造型01 7`] = `"25.32894"`; exports[`复杂极限刀半径: 走刀数量 1`] = `3`;
exports[`复杂造型01 8`] = `"25.32894"`; exports[`复杂造型01 1`] = `"39413.77528"`;
exports[`复杂造型01 9`] = `"676.69305"`; exports[`复杂造型01 2`] = `"15808.94716"`;
exports[`复杂造型01 10`] = `"227.60858"`; exports[`复杂造型01 3`] = `"4413.31745"`;
exports[`复杂造型01 11`] = `"80.89234"`; exports[`复杂造型01 4`] = `"1482.45521"`;
exports[`复杂造型01 12`] = `"10.10478"`; exports[`复杂造型01 5`] = `"838.79070"`;
exports[`复杂造型01 13`] = `"3.25247"`; exports[`复杂造型01 6`] = `"25.32894"`;
exports[`复杂造型01 14`] = `"301.66993"`; exports[`复杂造型01 7`] = `"25.32894"`;
exports[`复杂造型01 15`] = `"1749.86319"`; exports[`复杂造型01 8`] = `"676.69305"`;
exports[`复杂造型01 16`] = `"7.82855"`; exports[`复杂造型01 9`] = `"227.60858"`;
exports[`复杂造型01 17`] = `"2.56925"`; exports[`复杂造型01 10`] = `"80.89234"`;
exports[`复杂造型01 18`] = `"4316.13601"`; exports[`复杂造型01 11`] = `"10.10478"`;
exports[`复杂造型01 19`] = `"60.75517"`; exports[`复杂造型01 12`] = `"3.25247"`;
exports[`复杂造型01 20`] = `"270.97161"`; exports[`复杂造型01 13`] = `"301.66993"`;
exports[`复杂造型01 21`] = `"282.82482"`; exports[`复杂造型01 14`] = `"1749.86319"`;
exports[`复杂造型01 22`] = `"819.94115"`; exports[`复杂造型01 15`] = `"7.82855"`;
exports[`复杂造型01 23`] = `"1463.60565"`; exports[`复杂造型01 16`] = `"2.56925"`;
exports[`复杂造型01: 走刀数量 1`] = `16`; exports[`复杂造型01: 走刀数量 1`] = `16`;
exports[`复杂造型测试 1`] = `"2402.51119"`; exports[`复杂造型测试 1`] = `"24373.25075"`;
exports[`复杂造型测试 2`] = `"24373.25075"`;
exports[`复杂造型测试 3`] = `"4285.07185"`;
exports[`复杂造型测试 4`] = `"2418.14345"`;
exports[`复杂造型测试 5`] = `"2293.07622"`;
exports[`复杂造型测试 6`] = `"4096.10505"`;
exports[`复杂造型测试 7`] = `"910.13415"`;
exports[`复杂造型测试 8`] = `"2841.13372"`;
exports[`复杂造型测试 9`] = `"1079.27365"`;
exports[`复杂造型测试 10`] = `"227.83421"`;
exports[`复杂造型测试 11`] = `"16.40520"`;
exports[`复杂造型测试 12`] = `"696.19865"`; exports[`复杂造型测试 2`] = `"4285.07185"`;
exports[`复杂造型测试 13`] = `"639.79104"`; exports[`复杂造型测试 3`] = `"2418.14345"`;
exports[`复杂造型测试 14`] = `"1715.22255"`; exports[`复杂造型测试 4`] = `"2293.07622"`;
exports[`复杂造型测试 15`] = `"493.42887"`; exports[`复杂造型测试 5`] = `"4096.10505"`;
exports[`复杂造型测试 16`] = `"352.79733"`; exports[`复杂造型测试 6`] = `"910.13415"`;
exports[`复杂造型测试 17`] = `"342.70974"`; exports[`复杂造型测试 7`] = `"2841.13372"`;
exports[`复杂造型测试 18`] = `"476.09896"`; exports[`复杂造型测试 8`] = `"1079.27365"`;
exports[`复杂造型测试 19`] = `"1167.54793"`; exports[`复杂造型测试 9`] = `"227.83421"`;
exports[`复杂造型测试 20`] = `"413.71953"`; exports[`复杂造型测试 10`] = `"16.40520"`;
exports[`复杂造型测试 21`] = `"275.92757"`; exports[`复杂造型测试 11`] = `"696.19865"`;
exports[`复杂造型测试 22`] = `"99.71551"`; exports[`复杂造型测试 12`] = `"639.79104"`;
exports[`复杂造型测试 23`] = `"35.25476"`; exports[`复杂造型测试 13`] = `"106935.16317"`;
exports[`复杂造型测试 24`] = `"169.22283"`; exports[`复杂造型测试 14`] = `"5545.66534"`;
exports[`复杂造型测试 25`] = `"162.17188"`;
exports[`复杂造型测试 26`] = `"3600.00000"`;
exports[`复杂造型测试 27`] = `"106935.16317"`;
exports[`复杂造型测试 28`] = `"5545.66534"`;
exports[`复杂造型测试 29`] = `"2581.08481"`;
exports[`复杂造型测试 30`] = `"463.19934"`;
exports[`复杂造型测试 31`] = `"713.89111"`;
exports[`复杂造型测试: 走刀数量 1`] = `12`; exports[`复杂造型测试: 走刀数量 1`] = `12`;
exports[`复杂造型测试: 走刀数量 2`] = `2`; exports[`复杂造型测试: 走刀数量 2`] = `2`;
exports[`孔轮廓比外轮廓大 1`] = `"2800.00000"`; exports[`孔轮廓比外轮廓大 1`] = `"2290.84956"`;
exports[`孔轮廓比外轮廓大 2`] = `"2290.84956"`;
exports[`孔轮廓比外轮廓大 3`] = `"2309.69911"`;
exports[`孔轮廓比外轮廓大 4`] = `"2272.00000"`;
exports[`孔轮廓比外轮廓大: 走刀数量 1`] = `1`; exports[`孔轮廓比外轮廓大: 走刀数量 1`] = `1`;
exports[`带孔造型板件 1`] = `"3600.00000"`; exports[`带孔造型板件 1`] = `"31857.87785"`;
exports[`带孔造型板件 2`] = `"31857.87785"`; exports[`带孔造型板件 2`] = `"4397.08666"`;
exports[`带孔造型板件 3`] = `"4397.08666"`; exports[`带孔造型板件 3`] = `"31857.87785"`;
exports[`带孔造型板件 4`] = `"2195.97412"`; exports[`带孔造型板件 4`] = `"4397.08666"`;
exports[`带孔造型板件 5`] = `"1209.69294"`;
exports[`带孔造型板件 6`] = `"3600.00000"`;
exports[`带孔造型板件 7`] = `"31857.87785"`;
exports[`带孔造型板件 8`] = `"4397.08666"`;
exports[`带孔造型板件 9`] = `"2195.97412"`;
exports[`带孔造型板件 10`] = `"1209.69294"`;
exports[`带孔造型板件: 走刀数量 1`] = `2`; exports[`带孔造型板件: 走刀数量 1`] = `2`;
exports[`带孔造型板件: 走刀数量 2`] = `2`; exports[`带孔造型板件: 走刀数量 2`] = `2`;
exports[`日字加工 1`] = `"1276.43256"`; exports[`日字加工 1`] = `"41.15725"`;
exports[`日字加工 2`] = `"41.15725"`; exports[`日字加工 2`] = `"1.56220"`;
exports[`日字加工 3`] = `"1.56220"`; exports[`日字加工 3`] = `"38.29334"`;
exports[`日字加工 4`] = `"38.29334"`;
exports[`日字加工 5`] = `"124.64721"`;
exports[`日字加工 6`] = `"74.43932"`;
exports[`日字加工 7`] = `"74.91834"`;
exports[`日字加工: 走刀数量 1`] = `3`; exports[`日字加工: 走刀数量 1`] = `3`;
exports[`极限刀半径 1`] = `"3600.00000"`; exports[`极限刀半径 1`] = `"1000.00000"`;
exports[`极限刀半径 2`] = `"1000.00000"`;
exports[`极限刀半径 3`] = `"1740.00000"`;
exports[`极限刀半径 4`] = `"3600.00000"`;
exports[`极限刀半径 5`] = `"716.16750"`;
exports[`极限刀半径 6`] = `"1552.33596"`;
exports[`极限刀半径 7`] = `"3600.00000"`;
exports[`极限刀半径 8`] = `"1638.95917"`;
exports[`极限刀半径 9`] = `"3517.91835"`;
exports[`极限刀半径 10`] = `"3600.00000"`;
exports[`极限刀半径 11`] = `"600.00000"`;
exports[`极限刀半径 12`] = `"1040.00000"`;
exports[`极限刀半径 13`] = `"3600.00000"`; exports[`极限刀半径 2`] = `"716.16750"`;
exports[`极限刀半径 14`] = `"390.00000"`; exports[`极限刀半径 3`] = `"1638.95917"`;
exports[`极限刀半径 15`] = `"900.00000"`; exports[`极限刀半径 4`] = `"600.00000"`;
exports[`极限刀半径#I11UDE 1`] = `"4992.84974"`; exports[`极限刀半径 5`] = `"390.00000"`;
exports[`极限刀半径#I11UDE 2`] = `"2157.30391"`; exports[`极限刀半径#I11UDE 1`] = `"2157.30391"`;
exports[`极限刀半径#I11UDE 3`] = `"277.52910"`; exports[`极限刀半径#I11UDE 2`] = `"277.52910"`;
exports[`极限刀半径#I11UDE 4`] = `"2450.18872"`;
exports[`极限刀半径#I11UDE 5`] = `"2419.47730"`;
exports[`极限刀半径#I11UDE: 走刀数量 1`] = `2`; exports[`极限刀半径#I11UDE: 走刀数量 1`] = `2`;
@ -292,170 +170,132 @@ exports[`极限刀半径: 走刀数量 4`] = `1`;
exports[`极限刀半径: 走刀数量 5`] = `1`; exports[`极限刀半径: 走刀数量 5`] = `1`;
exports[`超级复杂造型01 1`] = `"5230.46984"`; exports[`超级复杂造型01 1`] = `"23338.03268"`;
exports[`超级复杂造型01 2`] = `"23338.03268"`; exports[`超级复杂造型01 2`] = `"11855.39979"`;
exports[`超级复杂造型01 3`] = `"11855.39979"`; exports[`超级复杂造型01 3`] = `"9.89484"`;
exports[`超级复杂造型01 4`] = `"9.89484"`; exports[`超级复杂造型01 4`] = `"34.11041"`;
exports[`超级复杂造型01 5`] = `"34.11041"`; exports[`超级复杂造型01 5`] = `"36.73893"`;
exports[`超级复杂造型01 6`] = `"36.73893"`; exports[`超级复杂造型01 6`] = `"93.09682"`;
exports[`超级复杂造型01 7`] = `"93.09682"`; exports[`超级复杂造型01 7`] = `"3.00516"`;
exports[`超级复杂造型01 8`] = `"3.00516"`; exports[`超级复杂造型01 8`] = `"15.55863"`;
exports[`超级复杂造型01 9`] = `"15.55863"`; exports[`超级复杂造型01 9`] = `"1.50234"`;
exports[`超级复杂造型01 10`] = `"1.50234"`; exports[`超级复杂造型01 10`] = `"34.11041"`;
exports[`超级复杂造型01 11`] = `"34.11041"`; exports[`超级复杂造型01 11`] = `"36.73893"`;
exports[`超级复杂造型01 12`] = `"36.73893"`; exports[`超级复杂造型01 12`] = `"23.17925"`;
exports[`超级复杂造型01 13`] = `"23.17925"`; exports[`超级复杂造型01 13`] = `"3.00516"`;
exports[`超级复杂造型01 14`] = `"3.00516"`; exports[`超级复杂造型01 14`] = `"3.00516"`;
exports[`超级复杂造型01 15`] = `"3.00516"`; exports[`超级复杂造型01 15`] = `"15.55863"`;
exports[`超级复杂造型01 16`] = `"15.55863"`; exports[`超级复杂造型01 16`] = `"1.50234"`;
exports[`超级复杂造型01 17`] = `"1.50234"`; exports[`超级复杂造型01 17`] = `"9.89484"`;
exports[`超级复杂造型01 18`] = `"9.89484"`; exports[`超级复杂造型01 18`] = `"2.27264"`;
exports[`超级复杂造型01 19`] = `"2.27264"`; exports[`超级复杂造型01 19`] = `"23.17925"`;
exports[`超级复杂造型01 20`] = `"23.17925"`; exports[`超级复杂造型01 20`] = `"36.73893"`;
exports[`超级复杂造型01 21`] = `"36.73893"`; exports[`超级复杂造型01 21`] = `"34.11041"`;
exports[`超级复杂造型01 22`] = `"34.11041"`; exports[`超级复杂造型01 22`] = `"3.00516"`;
exports[`超级复杂造型01 23`] = `"3.00516"`; exports[`超级复杂造型01 23`] = `"3.00516"`;
exports[`超级复杂造型01 24`] = `"3.00516"`; exports[`超级复杂造型01 24`] = `"15.55863"`;
exports[`超级复杂造型01 25`] = `"15.55863"`; exports[`超级复杂造型01 25`] = `"1.50234"`;
exports[`超级复杂造型01 26`] = `"1.50234"`; exports[`超级复杂造型01 26`] = `"9.89484"`;
exports[`超级复杂造型01 27`] = `"9.89484"`; exports[`超级复杂造型01 27`] = `"2.27264"`;
exports[`超级复杂造型01 28`] = `"2.27264"`; exports[`超级复杂造型01 28`] = `"23.17925"`;
exports[`超级复杂造型01 29`] = `"23.17925"`; exports[`超级复杂造型01 29`] = `"36.73893"`;
exports[`超级复杂造型01 30`] = `"36.73893"`; exports[`超级复杂造型01 30`] = `"34.11041"`;
exports[`超级复杂造型01 31`] = `"34.11041"`; exports[`超级复杂造型01 31`] = `"3.00516"`;
exports[`超级复杂造型01 32`] = `"3.00516"`; exports[`超级复杂造型01 32`] = `"3.00516"`;
exports[`超级复杂造型01 33`] = `"3.00516"`; exports[`超级复杂造型01 33`] = `"15.55863"`;
exports[`超级复杂造型01 34`] = `"15.55863"`; exports[`超级复杂造型01 34`] = `"1.50234"`;
exports[`超级复杂造型01 35`] = `"1.50234"`; exports[`超级复杂造型01 35`] = `"9.89484"`;
exports[`超级复杂造型01 36`] = `"9.89484"`; exports[`超级复杂造型01 36`] = `"2.27264"`;
exports[`超级复杂造型01 37`] = `"2.27264"`; exports[`超级复杂造型01 37`] = `"23.17925"`;
exports[`超级复杂造型01 38`] = `"23.17925"`; exports[`超级复杂造型01 38`] = `"36.73893"`;
exports[`超级复杂造型01 39`] = `"36.73893"`; exports[`超级复杂造型01 39`] = `"34.11041"`;
exports[`超级复杂造型01 40`] = `"34.11041"`; exports[`超级复杂造型01 40`] = `"3.00516"`;
exports[`超级复杂造型01 41`] = `"3.00516"`; exports[`超级复杂造型01 41`] = `"3.00516"`;
exports[`超级复杂造型01 42`] = `"3.00516"`; exports[`超级复杂造型01 42`] = `"15.55863"`;
exports[`超级复杂造型01 43`] = `"15.55863"`; exports[`超级复杂造型01 43`] = `"1.50234"`;
exports[`超级复杂造型01 44`] = `"1.50234"`; exports[`超级复杂造型01 44`] = `"9.89484"`;
exports[`超级复杂造型01 45`] = `"9.89484"`; exports[`超级复杂造型01 45`] = `"2.27264"`;
exports[`超级复杂造型01 46`] = `"2.27264"`; exports[`超级复杂造型01 46`] = `"23.17925"`;
exports[`超级复杂造型01 47`] = `"23.17925"`; exports[`超级复杂造型01 47`] = `"34.11041"`;
exports[`超级复杂造型01 48`] = `"34.11041"`; exports[`超级复杂造型01 48`] = `"36.73893"`;
exports[`超级复杂造型01 49`] = `"36.73893"`; exports[`超级复杂造型01 49`] = `"3.00516"`;
exports[`超级复杂造型01 50`] = `"3.00516"`; exports[`超级复杂造型01 50`] = `"3.00516"`;
exports[`超级复杂造型01 51`] = `"3.00516"`; exports[`超级复杂造型01 51`] = `"9.89484"`;
exports[`超级复杂造型01 52`] = `"9.89484"`;
exports[`超级复杂造型01 53`] = `"2.27264"`;
exports[`超级复杂造型01 54`] = `"15.55863"`;
exports[`超级复杂造型01 55`] = `"1.50234"`;
exports[`超级复杂造型01 56`] = `"11906.41153"`;
exports[`超级复杂造型01 57`] = `"464.88810"`;
exports[`超级复杂造型01 58`] = `"464.88810"`;
exports[`超级复杂造型01 59`] = `"464.88810"`;
exports[`超级复杂造型01 60`] = `"464.88810"`;
exports[`超级复杂造型01 61`] = `"464.88810"`; exports[`超级复杂造型01 52`] = `"2.27264"`;
exports[`超级复杂造型01 62`] = `"464.88810"`; exports[`超级复杂造型01 53`] = `"15.55863"`;
exports[`超级复杂造型01 63`] = `"9277.91064"`; exports[`超级复杂造型01 54`] = `"1.50234"`;
exports[`超级复杂造型01: 走刀数量 1`] = `54`; exports[`超级复杂造型01: 走刀数量 1`] = `54`;
exports[`通孔造型测试 1`] = `"3600.00000"`; exports[`通孔造型测试 1`] = `"1872.61683"`;
exports[`通孔造型测试 2`] = `"1872.61683"`;
exports[`通孔造型测试 3`] = `"1896.61683"`;
exports[`通孔造型测试: 走刀数量 1`] = `1`; exports[`通孔造型测试: 走刀数量 1`] = `1`;
exports[`通槽加长错误 1`] = `"2485.18570"`; exports[`通槽加长错误 1`] = `"719.93538"`;
exports[`通槽加长错误 2`] = `"719.93538"`;
exports[`通槽加长错误 3`] = `"1432.44095"`;
exports[`通槽加长错误: 走刀数量 1`] = `1`; exports[`通槽加长错误: 走刀数量 1`] = `1`;
exports[`造型的外框和内框厚度小于刀半径厚度 1`] = `"3600.00000"`;
exports[`造型的外框和内框厚度小于刀半径厚度: 走刀数量 1`] = `0`; exports[`造型的外框和内框厚度小于刀半径厚度: 走刀数量 1`] = `0`;
exports[`造型的外框和内框厚度等于刀直径 1`] = `"3600.00000"`; exports[`造型的外框和内框厚度等于刀直径 1`] = `"1459.45340"`;
exports[`造型的外框和内框厚度等于刀直径 2`] = `"1459.45340"`;
exports[`造型的外框和内框厚度等于刀直径 3`] = `"1483.45340"`;
exports[`造型的外框和内框厚度等于刀直径 4`] = `"1435.45340"`;
exports[`造型的外框和内框厚度等于刀直径: 走刀数量 1`] = `1`; exports[`造型的外框和内框厚度等于刀直径: 走刀数量 1`] = `1`;
exports[`门字部分 1`] = `"3600.00000"`; exports[`门字部分 1`] = `"1.76759"`;
exports[`门字部分 2`] = `"1.76759"`;
exports[`门字部分 3`] = `"8.75659"`;
exports[`门字部分 4`] = `"189.85784"`; exports[`门字部分 2`] = `"8.75659"`;
exports[`门字部分: 走刀数量 1`] = `2`; exports[`门字部分: 走刀数量 1`] = `2`;

@ -415,7 +415,7 @@ export class Shape
} }
/** /**
* ,使(),. * ,使(),.
* canSidewipe , * canSidewipe ,,,
*/ */
static mergeContours(holes: Contour[], canSidewipe = true): Contour[] static mergeContours(holes: Contour[], canSidewipe = true): Contour[]
{ {
@ -459,6 +459,8 @@ export class Shape
{ {
if (equaln(c.Area + ic.Area, unions.contours[0].Area, 0.1)) if (equaln(c.Area + ic.Area, unions.contours[0].Area, 0.1))
return true; return true;
if (equaln(unions.contours[0].Area, Math.max(c.Area, ic.Area), 0.1))
return true;
} }
c = unions.contours[0]; //更新c c = unions.contours[0]; //更新c
b1 = c.BoundingBox; b1 = c.BoundingBox;

@ -190,54 +190,7 @@ export class FeedingToolPath extends Singleton
return false; return false;
}); });
let cus = this.CalcPath(modelings, br); return this.CalcPath(modelings, br);
//不同走刀路径区分颜色
cus.forEach((c, i) => c.ColorIndex = (i + 1 === 8 || i + 1 === 18 || i + 1 === 19) ? i + 2 : i + 1);
let outline = br.ContourCurve as Polyline;
let dir = Math.sign(outline.Area2);
let sideOutlines: Polyline[] = [];
//优化侧面造型模拟走刀位置
for (let m of allModeling.sideModeling)
{
let c = outline.GetCurveAtIndex(m.dir);
let derv = c.GetFistDeriv(0);
if (dir < 0)
derv.negate();
let mat = MoveMatrix(dir > 0 ? c.StartPoint : c.EndPoint)
.multiply(new Matrix4().makeRotationZ(angleTo(XAxis, derv)))
.multiply(MoveMatrix(new Vector3(0, -br.Thickness)));
m.shape.ApplyMatrix(mat);
let pl = new Polyline().RectangleFrom2Pt(new Vector3(), new Vector3(c.Length, br.Thickness));
pl.ColorIndex = 6;
pl.ApplyMatrix(mat);
sideOutlines.push(pl);
}
cus.push(...this.CalcPath(allModeling.sideModeling, br));
//加入板件轮廓
cus.unshift(br.ContourCurve.Clone());
if (cus.length === 1)
return cus;
//加入造型外轮廓和洞
for (let { shape, thickness } of modelings)
{
let outline = shape.Outline.Curve.Clone();
outline.Position = outline.Position.setZ(0);
outline.ColorIndex = 8;
cus.push(outline);
if (thickness < br.Thickness)
{
cus.push(...shape.Holes.map(h =>
{
let c = h.Curve.Clone();
c.Position = c.Position.setZ(0);
c.ColorIndex = 8;
return c;
}));
}
}
cus.push(...sideOutlines);
return cus;
} }
/** /**
* *

Loading…
Cancel
Save