mirror of https://gitee.com/cf-fz/WebCAD.git
!2285 功能:三维放样(Sweep)(线条)
parent
4e0d808ed3
commit
2376956cb4
@ -0,0 +1,68 @@
|
|||||||
|
import { Vector3 } from "three";
|
||||||
|
import { HardwareTopline } from "../../src/DatabaseServices/Hardware/HardwareTopline";
|
||||||
|
import { LoadEntityFromFileData } from "../Utils/LoadEntity.util";
|
||||||
|
|
||||||
|
|
||||||
|
describe("三维扫掠夹点拉伸及拖拽", () =>
|
||||||
|
{
|
||||||
|
test("连接点拖拽", () =>
|
||||||
|
{
|
||||||
|
let data = { "file": [1, "HardwareTopline", 10, 2, 289, 0, 1, 7, 71, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, 1, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, 1, 2, "Polyline", 10, 2, 0, 0, 0, 7, 71, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1794.6800494579688, -752.3551866479207, 0, 1], 0, 0, 1, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1794.6800494579688, -752.3551866479207, 0, 1], 0, 0, 1, 2, 12, [1691.4177159478995, 702.8822712717154], 0, [1714.7698425753852, 679.5301446442261], 0, [1714.7698425753852, 679.5301446442261], 0, [1714.7698425753852, 679.5301446442261], 0, [1746.210156625953, 710.970458694799], 0, [1775.6109646391687, 681.5696506815787], 0, [1811.5243923180442, 717.4830783604598], 0, [1851.9100343613813, 677.0974363171161], 0, [1851.9100343613813, 677.0974363171161], 0, [1900.5427993008007, 725.7302012565432], 0, [1799.7364779468508, 826.5365226105092], 0, [1691.4177159478995, 702.8822712717154], 0, false, 2, "Polyline", 10, 2, 0, 0, 1, 7, 71, [0, -1, 0, 0, 0, 0, 1, 0, -1, 0, 0, 0, 1756.7709279402495, 0, 0, 1], 0, 0, 1, [0, -1, 0, 0, 0, 0, 1, 0, -1, 0, 0, 0, 1756.7709279402495, 0, 0, 1], 0, 0, 1, 2, 4, [0, -1759.3364756864237], 0, [2540.6486638849437, -1754.5919838318846], 0, [2646.5114137277756, 2782.5795590546654], 0, [0, 2676.716809211834], 0, false, "Polyline", 10, 2, 0, 0, 1, 7, 71, [1, 0, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, 0, 0, 0, 1], 0, 0, 1, [1, 0, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, 0, 0, 0, 1], 0, 0, 1, 2, 4, [1756.7709279402495, 2676.716809211834], 0, [-1452.394394942868, 2676.716809211834], 0, [-1452.394394942868, -1759.3364756864237], 0, [1756.7709279402495, -1759.3364756864237], 0, false, 1, 0, "0", "2", "", "", "", "", "", "", "", "", "", 0], "basePt": { "x": -1558.2571447857001, "y": -2754.976206098365, "z": -1865.1992255292557 }, "ucs": [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] };
|
||||||
|
|
||||||
|
let en = LoadEntityFromFileData(data)[0] as HardwareTopline;
|
||||||
|
en.MoveGripPoints([6, 7], new Vector3(0, 3000, 3000));
|
||||||
|
const pathGripPts = en.GetGripPoints();
|
||||||
|
for (let pt of pathGripPts)
|
||||||
|
expect(pt).toMatchSnapshot();
|
||||||
|
});
|
||||||
|
test("中间点拖拽", () =>
|
||||||
|
{
|
||||||
|
let data = { "file": [1, "HardwareTopline", 10, 2, 289, 0, 1, 7, 71, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, 1, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, 1, 2, "Polyline", 10, 2, 0, 0, 0, 7, 71, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1794.6800494579688, -752.3551866479207, 0, 1], 0, 0, 1, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1794.6800494579688, -752.3551866479207, 0, 1], 0, 0, 1, 2, 12, [1691.4177159478995, 702.8822712717154], 0, [1714.7698425753852, 679.5301446442261], 0, [1714.7698425753852, 679.5301446442261], 0, [1714.7698425753852, 679.5301446442261], 0, [1746.210156625953, 710.970458694799], 0, [1775.6109646391687, 681.5696506815787], 0, [1811.5243923180442, 717.4830783604598], 0, [1851.9100343613813, 677.0974363171161], 0, [1851.9100343613813, 677.0974363171161], 0, [1900.5427993008007, 725.7302012565432], 0, [1799.7364779468508, 826.5365226105092], 0, [1691.4177159478995, 702.8822712717154], 0, false, 2, "Polyline", 10, 2, 0, 0, 1, 7, 71, [0, -1, 0, 0, 0, 0, 1, 0, -1, 0, 0, 0, 1756.7709279402495, 0, 0, 1], 0, 0, 1, [0, -1, 0, 0, 0, 0, 1, 0, -1, 0, 0, 0, 1756.7709279402495, 0, 0, 1], 0, 0, 1, 2, 4, [0, -1759.3364756864237], 0, [2540.6486638849437, -1754.5919838318846], 0, [2646.5114137277756, 2782.5795590546654], 0, [0, 2676.716809211834], 0, false, "Polyline", 10, 2, 0, 0, 1, 7, 71, [1, 0, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, 0, 0, 0, 1], 0, 0, 1, [1, 0, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, 0, 0, 0, 1], 0, 0, 1, 2, 4, [1756.7709279402495, 2676.716809211834], 0, [-1452.394394942868, 2676.716809211834], 0, [-1452.394394942868, -1759.3364756864237], 0, [1756.7709279402495, -1759.3364756864237], 0, false, 1, 0, "0", "2", "", "", "", "", "", "", "", "", "", 0], "basePt": { "x": -1558.2571447857001, "y": -2754.976206098365, "z": -1865.1992255292557 }, "ucs": [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] };
|
||||||
|
|
||||||
|
let en = LoadEntityFromFileData(data)[0] as HardwareTopline;
|
||||||
|
en.MoveGripPoints([5], new Vector3(0, 0, 2500));
|
||||||
|
const pathGripPts = en.GetGripPoints();
|
||||||
|
for (let pt of pathGripPts)
|
||||||
|
expect(pt).toMatchSnapshot();
|
||||||
|
});
|
||||||
|
test("三线段连接点拖拽", () =>
|
||||||
|
{
|
||||||
|
let data = { "file": [1, "HardwareTopline", 10, 2, 290, 0, 1, 7, 71, [0.08710264982404563, -0.995587843197948, -0.03489949670250097, 0, 0.9961946980917455, 0.08715574274765814, 0, 0, 0.003041691556625918, -0.03476669358110182, 0.9993908270190958, 0, 4585.502577142352, -3723.710151480106, 2182.6332735674614, 1], 0, 0, 1, [0.08710264982404563, -0.995587843197948, -0.03489949670250097, 0, 0.9961946980917455, 0.08715574274765814, 0, 0, 0.003041691556625918, -0.03476669358110182, 0.9993908270190958, 0, 4585.502577142352, -3723.710151480106, 2182.6332735674614, 1], 0, 0, 1, 2, "Polyline", 10, 2, 0, 0, 0, 7, 71, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1794.6800494579688, -752.3551866479207, 0, 1], 0, 0, 1, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1794.6800494579688, -752.3551866479207, 0, 1], 0, 0, 1, 2, 12, [1691.4177159478995, 702.8822712717154], 0, [1714.7698425753852, 679.5301446442261], 0, [1714.7698425753852, 679.5301446442261], 0, [1714.7698425753852, 679.5301446442261], 0, [1746.210156625953, 710.970458694799], 0, [1775.6109646391687, 681.5696506815787], 0, [1811.5243923180442, 717.4830783604598], 0, [1851.9100343613813, 677.0974363171161], 0, [1851.9100343613813, 677.0974363171161], 0, [1900.5427993008007, 725.7302012565432], 0, [1799.7364779468508, 826.5365226105092], 0, [1691.4177159478995, 702.8822712717154], 0, false, 4, "Polyline", 10, 2, 0, 0, 0, 7, 71, [1, 0, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, 0, 0, 0, 1], 0, 0, 1, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, 1, 2, 4, [2079.4342344794095, 1585.0706627478594], 0, [5161.537758750944, 1369.5366844918453], 0, [5161.537758750944, -1871.4511341125599], 0, [2317.886631016043, -1896.850481283555], 0, false, "Polyline", 10, 2, 0, 0, 0, 7, 71, [1, 0, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, 487.4772192513367, 0, 1369.5366844918453, 1], 0, 0, 1, [1, 0, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, 487.4772192513367, 0, 1369.5366844918453, 1], 0, 0, 1, 2, 2, [1830.4094117647062, -3266.3871657754003], 0, [0, -3266.3871657754003], 0, false, "Polyline", 10, 2, 0, 0, 0, 7, 71, [0, -1, 0, 0, 1.2246467991473532e-16, 0, -1, 0, 1, 0, 1.2246467991473532e-16, 0, 487.47721925133686, 0, -1896.850481283555, 1], 0, 0, 1, [0, -1, 0, 0, 1.2246467991473532e-16, 0, -1, 0, 1, 0, 1.2246467991473532e-16, 0, 487.47721925133686, 0, -1896.850481283555, 1], 0, 0, 1, 2, 4, [0, 0], 0, [2374.4326701394516, 0], 0, [2374.4326701394516, -3259.051966436142], 0, [0, -3740.6774573715625], 0, false, "Polyline", 10, 2, 0, 0, 0, 7, 71, [1, 0, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, 487.4772192513367, 0, 1369.5366844918453, 1], 0, 0, 1, [1, 0, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, 487.4772192513367, 0, 1369.5366844918453, 1], 0, 0, 1, 2, 2, [-5.808380874699053e-14, 474.29029159616266], 0, [1591.957015228073, 215.53397825601405], 0, false, 1, 0, "0", "2", "", "", "", "", "", "", "", "", "", 0], "basePt": { "x": 2147.057632809272, "y": -9249.31319428957, "z": 0 }, "ucs": [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] };
|
||||||
|
|
||||||
|
let en = LoadEntityFromFileData(data)[0] as HardwareTopline;
|
||||||
|
en.MoveGripPoints([9, 10], new Vector3(70, -800, 2000));
|
||||||
|
const pathGripPts = en.GetGripPoints();
|
||||||
|
for (let pt of pathGripPts)
|
||||||
|
expect(pt).toMatchSnapshot();
|
||||||
|
});
|
||||||
|
test("三线段中间点拖拽", () =>
|
||||||
|
{
|
||||||
|
let data = { "file": [1, "HardwareTopline", 10, 2, 290, 0, 1, 7, 71, [0.08710264982404563, -0.995587843197948, -0.03489949670250097, 0, 0.9961946980917455, 0.08715574274765814, 0, 0, 0.003041691556625918, -0.03476669358110182, 0.9993908270190958, 0, 4585.502577142352, -3723.710151480106, 2182.6332735674614, 1], 0, 0, 1, [0.08710264982404563, -0.995587843197948, -0.03489949670250097, 0, 0.9961946980917455, 0.08715574274765814, 0, 0, 0.003041691556625918, -0.03476669358110182, 0.9993908270190958, 0, 4585.502577142352, -3723.710151480106, 2182.6332735674614, 1], 0, 0, 1, 2, "Polyline", 10, 2, 0, 0, 0, 7, 71, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1794.6800494579688, -752.3551866479207, 0, 1], 0, 0, 1, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1794.6800494579688, -752.3551866479207, 0, 1], 0, 0, 1, 2, 12, [1691.4177159478995, 702.8822712717154], 0, [1714.7698425753852, 679.5301446442261], 0, [1714.7698425753852, 679.5301446442261], 0, [1714.7698425753852, 679.5301446442261], 0, [1746.210156625953, 710.970458694799], 0, [1775.6109646391687, 681.5696506815787], 0, [1811.5243923180442, 717.4830783604598], 0, [1851.9100343613813, 677.0974363171161], 0, [1851.9100343613813, 677.0974363171161], 0, [1900.5427993008007, 725.7302012565432], 0, [1799.7364779468508, 826.5365226105092], 0, [1691.4177159478995, 702.8822712717154], 0, false, 4, "Polyline", 10, 2, 0, 0, 0, 7, 71, [1, 0, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, 0, 0, 0, 1], 0, 0, 1, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, 1, 2, 4, [2079.4342344794095, 1585.0706627478594], 0, [5161.537758750944, 1369.5366844918453], 0, [5161.537758750944, -1871.4511341125599], 0, [2317.886631016043, -1896.850481283555], 0, false, "Polyline", 10, 2, 0, 0, 0, 7, 71, [1, 0, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, 487.4772192513367, 0, 1369.5366844918453, 1], 0, 0, 1, [1, 0, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, 487.4772192513367, 0, 1369.5366844918453, 1], 0, 0, 1, 2, 2, [1830.4094117647062, -3266.3871657754003], 0, [0, -3266.3871657754003], 0, false, "Polyline", 10, 2, 0, 0, 0, 7, 71, [0, -1, 0, 0, 1.2246467991473532e-16, 0, -1, 0, 1, 0, 1.2246467991473532e-16, 0, 487.47721925133686, 0, -1896.850481283555, 1], 0, 0, 1, [0, -1, 0, 0, 1.2246467991473532e-16, 0, -1, 0, 1, 0, 1.2246467991473532e-16, 0, 487.47721925133686, 0, -1896.850481283555, 1], 0, 0, 1, 2, 4, [0, 0], 0, [2374.4326701394516, 0], 0, [2374.4326701394516, -3259.051966436142], 0, [0, -3740.6774573715625], 0, false, "Polyline", 10, 2, 0, 0, 0, 7, 71, [1, 0, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, 487.4772192513367, 0, 1369.5366844918453, 1], 0, 0, 1, [1, 0, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, 487.4772192513367, 0, 1369.5366844918453, 1], 0, 0, 1, 2, 2, [-5.808380874699053e-14, 474.29029159616266], 0, [1591.957015228073, 215.53397825601405], 0, false, 1, 0, "0", "2", "", "", "", "", "", "", "", "", "", 0], "basePt": { "x": 2147.057632809272, "y": -9249.31319428957, "z": 0 }, "ucs": [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] };
|
||||||
|
|
||||||
|
let en = LoadEntityFromFileData(data)[0] as HardwareTopline;
|
||||||
|
en.MoveGripPoints([18], new Vector3(10, -1000, 2500));
|
||||||
|
const pathGripPts = en.GetGripPoints();
|
||||||
|
for (let pt of pathGripPts)
|
||||||
|
expect(pt).toMatchSnapshot();
|
||||||
|
});
|
||||||
|
|
||||||
|
test("二线段拉伸", () =>
|
||||||
|
{
|
||||||
|
let data = { "file": [1, "HardwareTopline", 10, 2, 289, 0, 1, 7, 71, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, 1, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, 1, 2, "Polyline", 10, 2, 0, 0, 0, 7, 71, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1794.6800494579688, -752.3551866479207, 0, 1], 0, 0, 1, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1794.6800494579688, -752.3551866479207, 0, 1], 0, 0, 1, 2, 12, [1691.4177159478995, 702.8822712717154], 0, [1714.7698425753852, 679.5301446442261], 0, [1714.7698425753852, 679.5301446442261], 0, [1714.7698425753852, 679.5301446442261], 0, [1746.210156625953, 710.970458694799], 0, [1775.6109646391687, 681.5696506815787], 0, [1811.5243923180442, 717.4830783604598], 0, [1851.9100343613813, 677.0974363171161], 0, [1851.9100343613813, 677.0974363171161], 0, [1900.5427993008007, 725.7302012565432], 0, [1799.7364779468508, 826.5365226105092], 0, [1691.4177159478995, 702.8822712717154], 0, false, 2, "Polyline", 10, 2, 0, 0, 1, 7, 71, [0, -1, 0, 0, 0, 0, 1, 0, -1, 0, 0, 0, 1756.7709279402495, 0, 0, 1], 0, 0, 1, [0, -1, 0, 0, 0, 0, 1, 0, -1, 0, 0, 0, 1756.7709279402495, 0, 0, 1], 0, 0, 1, 2, 4, [0, -1759.3364756864237], 0, [2540.6486638849437, -1754.5919838318846], 0, [2646.5114137277756, 2782.5795590546654], 0, [0, 2676.716809211834], 0, false, "Polyline", 10, 2, 0, 0, 1, 7, 71, [1, 0, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, 0, 0, 0, 1], 0, 0, 1, [1, 0, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, 0, 0, 0, 1], 0, 0, 1, 2, 4, [1756.7709279402495, 2676.716809211834], 0, [-1452.394394942868, 2676.716809211834], 0, [-1452.394394942868, -1759.3364756864237], 0, [1756.7709279402495, -1759.3364756864237], 0, false, 1, 0, "0", "2", "", "", "", "", "", "", "", "", "", 0], "basePt": { "x": -1558.2571447857001, "y": -2754.976206098365, "z": -1865.1992255292557 }, "ucs": [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] };
|
||||||
|
let en = LoadEntityFromFileData(data)[0] as HardwareTopline;
|
||||||
|
en.MoveStretchPoints([6, 5], new Vector3(-2500, 0, 0));
|
||||||
|
const pathGripPts = en.GetStretchPoints();
|
||||||
|
for (let pt of pathGripPts)
|
||||||
|
expect(pt).toMatchSnapshot();
|
||||||
|
});
|
||||||
|
|
||||||
|
test("三线段拉伸", () =>
|
||||||
|
{
|
||||||
|
let data = { "file": [1, "HardwareTopline", 10, 2, 290, 0, 1, 7, 71, [0.08710264982404563, -0.995587843197948, -0.03489949670250097, 0, 0.9961946980917455, 0.08715574274765814, 0, 0, 0.003041691556625918, -0.03476669358110182, 0.9993908270190958, 0, 4585.502577142352, -3723.710151480106, 2182.6332735674614, 1], 0, 0, 1, [0.08710264982404563, -0.995587843197948, -0.03489949670250097, 0, 0.9961946980917455, 0.08715574274765814, 0, 0, 0.003041691556625918, -0.03476669358110182, 0.9993908270190958, 0, 4585.502577142352, -3723.710151480106, 2182.6332735674614, 1], 0, 0, 1, 2, "Polyline", 10, 2, 0, 0, 0, 7, 71, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1794.6800494579688, -752.3551866479207, 0, 1], 0, 0, 1, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1794.6800494579688, -752.3551866479207, 0, 1], 0, 0, 1, 2, 12, [1691.4177159478995, 702.8822712717154], 0, [1714.7698425753852, 679.5301446442261], 0, [1714.7698425753852, 679.5301446442261], 0, [1714.7698425753852, 679.5301446442261], 0, [1746.210156625953, 710.970458694799], 0, [1775.6109646391687, 681.5696506815787], 0, [1811.5243923180442, 717.4830783604598], 0, [1851.9100343613813, 677.0974363171161], 0, [1851.9100343613813, 677.0974363171161], 0, [1900.5427993008007, 725.7302012565432], 0, [1799.7364779468508, 826.5365226105092], 0, [1691.4177159478995, 702.8822712717154], 0, false, 4, "Polyline", 10, 2, 0, 0, 0, 7, 71, [1, 0, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, 0, 0, 0, 1], 0, 0, 1, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, 1, 2, 4, [2079.4342344794095, 1585.0706627478594], 0, [5161.537758750944, 1369.5366844918453], 0, [5161.537758750944, -1871.4511341125599], 0, [2317.886631016043, -1896.850481283555], 0, false, "Polyline", 10, 2, 0, 0, 0, 7, 71, [1, 0, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, 487.4772192513367, 0, 1369.5366844918453, 1], 0, 0, 1, [1, 0, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, 487.4772192513367, 0, 1369.5366844918453, 1], 0, 0, 1, 2, 2, [1830.4094117647062, -3266.3871657754003], 0, [0, -3266.3871657754003], 0, false, "Polyline", 10, 2, 0, 0, 0, 7, 71, [0, -1, 0, 0, 1.2246467991473532e-16, 0, -1, 0, 1, 0, 1.2246467991473532e-16, 0, 487.47721925133686, 0, -1896.850481283555, 1], 0, 0, 1, [0, -1, 0, 0, 1.2246467991473532e-16, 0, -1, 0, 1, 0, 1.2246467991473532e-16, 0, 487.47721925133686, 0, -1896.850481283555, 1], 0, 0, 1, 2, 4, [0, 0], 0, [2374.4326701394516, 0], 0, [2374.4326701394516, -3259.051966436142], 0, [0, -3740.6774573715625], 0, false, "Polyline", 10, 2, 0, 0, 0, 7, 71, [1, 0, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, 487.4772192513367, 0, 1369.5366844918453, 1], 0, 0, 1, [1, 0, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, 487.4772192513367, 0, 1369.5366844918453, 1], 0, 0, 1, 2, 2, [-5.808380874699053e-14, 474.29029159616266], 0, [1591.957015228073, 215.53397825601405], 0, false, 1, 0, "0", "2", "", "", "", "", "", "", "", "", "", 0], "basePt": { "x": 2147.057632809272, "y": -9249.31319428957, "z": 0 }, "ucs": [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] };
|
||||||
|
let en = LoadEntityFromFileData(data)[0] as HardwareTopline;
|
||||||
|
en.MoveStretchPoints([11, 10, 9, 8, 1, 0], new Vector3(0, 0, 2000));
|
||||||
|
const pathGripPts = en.GetStretchPoints();
|
||||||
|
for (let pt of pathGripPts)
|
||||||
|
expect(pt).toMatchSnapshot();
|
||||||
|
});
|
||||||
|
});
|
@ -0,0 +1,705 @@
|
|||||||
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段中间点拖拽 1`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4779.153543829856,
|
||||||
|
"y": -5937.150829198574,
|
||||||
|
"z": 6225.898121747388,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段中间点拖拽 2`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4909.202722547994,
|
||||||
|
"y": -7423.619743878054,
|
||||||
|
"z": 4798.549362535392,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段中间点拖拽 3`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 5039.251901266132,
|
||||||
|
"y": -8910.088658557535,
|
||||||
|
"z": 3371.2006033233943,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段中间点拖拽 4`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 5034.322858624644,
|
||||||
|
"y": -8853.749443362783,
|
||||||
|
"z": 1751.6938551264584,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段中间点拖拽 5`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 5029.393815983156,
|
||||||
|
"y": -8797.410228168032,
|
||||||
|
"z": 132.187106929523,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段中间点拖拽 6`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4905.510413292816,
|
||||||
|
"y": -7381.416455973404,
|
||||||
|
"z": 169.1161662197635,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段中间点拖拽 7`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4781.627010602477,
|
||||||
|
"y": -5965.4226837787755,
|
||||||
|
"z": 206.045225510004,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段中间点拖拽 8`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4781.627010602477,
|
||||||
|
"y": -5965.4226837787755,
|
||||||
|
"z": 206.045225510004,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段中间点拖拽 9`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4701.9102555886875,
|
||||||
|
"y": -5054.2560045647515,
|
||||||
|
"z": 237.9854091250586,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段中间点拖拽 10`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4622.193500574898,
|
||||||
|
"y": -4143.0893253507265,
|
||||||
|
"z": 269.9255927401132,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段中间点拖拽 11`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4622.193500574898,
|
||||||
|
"y": -4143.0893253507265,
|
||||||
|
"z": 269.9255927401132,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段中间点拖拽 12`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 3439.4948820905242,
|
||||||
|
"y": -4246.562046835881,
|
||||||
|
"z": 269.9255927401132,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段中间点拖拽 13`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 2256.79626360615,
|
||||||
|
"y": -4350.034768321036,
|
||||||
|
"z": 269.9255927401132,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段中间点拖拽 14`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 2261.752779030607,
|
||||||
|
"y": -4406.687998862022,
|
||||||
|
"z": 1898.4589127575264,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段中间点拖拽 15`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 2266.709294455064,
|
||||||
|
"y": -4463.341229403009,
|
||||||
|
"z": 3526.992232774939,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段中间点拖拽 16`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 3453.9931103730432,
|
||||||
|
"y": -4412.277554402447,
|
||||||
|
"z": 5033.523769555613,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段中间点拖拽 17`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4641.276926291022,
|
||||||
|
"y": -4361.213879401886,
|
||||||
|
"z": 6540.055306336288,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段中间点拖拽 18`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4641.276926291022,
|
||||||
|
"y": -4361.2138794018865,
|
||||||
|
"z": 6540.055306336288,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段中间点拖拽 19`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4710.215235060439,
|
||||||
|
"y": -5149.18235430023,
|
||||||
|
"z": 6382.976714041839,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段中间点拖拽 20`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4779.153543829856,
|
||||||
|
"y": -5937.150829198574,
|
||||||
|
"z": 6225.898121747388,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段拉伸 1`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4777.527782432507,
|
||||||
|
"y": -5918.5682913950595,
|
||||||
|
"z": 5691.731196145292,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段拉伸 2`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 5045.331578546759,
|
||||||
|
"y": -8979.579687859008,
|
||||||
|
"z": 5368.764653583218,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段拉伸 3`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 5029.393815983156,
|
||||||
|
"y": -8797.410228168032,
|
||||||
|
"z": 132.187106929523,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段拉伸 4`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4781.627010602477,
|
||||||
|
"y": -5965.4226837787755,
|
||||||
|
"z": 206.045225510004,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段拉伸 5`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4781.627010602477,
|
||||||
|
"y": -5965.4226837787755,
|
||||||
|
"z": 206.045225510004,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段拉伸 6`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4622.193500574898,
|
||||||
|
"y": -4143.0893253507265,
|
||||||
|
"z": 269.9255927401132,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段拉伸 7`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4622.193500574898,
|
||||||
|
"y": -4143.0893253507265,
|
||||||
|
"z": 269.9255927401132,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段拉伸 8`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 2256.79626360615,
|
||||||
|
"y": -4350.034768321036,
|
||||||
|
"z": 269.9255927401132,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段拉伸 9`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 2272.7889717356907,
|
||||||
|
"y": -4532.832258704482,
|
||||||
|
"z": 5524.556283034763,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段拉伸 10`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4639.651164893673,
|
||||||
|
"y": -4342.631341598372,
|
||||||
|
"z": 6005.888380734192,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段拉伸 11`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4639.651164893673,
|
||||||
|
"y": -4342.631341598372,
|
||||||
|
"z": 6005.888380734192,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段拉伸 12`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4777.527782432507,
|
||||||
|
"y": -5918.56829139506,
|
||||||
|
"z": 5691.731196145292,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段连接点拖拽 1`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4771.44810515188,
|
||||||
|
"y": -5849.077262093586,
|
||||||
|
"z": 3694.167145885469,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段连接点拖拽 2`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4905.350003209006,
|
||||||
|
"y": -7379.582960325561,
|
||||||
|
"z": 3532.6838746044314,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段连接点拖拽 3`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 5039.251901266132,
|
||||||
|
"y": -8910.088658557535,
|
||||||
|
"z": 3371.2006033233943,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段连接点拖拽 4`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 5034.322858624644,
|
||||||
|
"y": -8853.749443362783,
|
||||||
|
"z": 1751.6938551264584,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段连接点拖拽 5`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 5029.393815983156,
|
||||||
|
"y": -8797.410228168032,
|
||||||
|
"z": 132.187106929523,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段连接点拖拽 6`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4905.510413292816,
|
||||||
|
"y": -7381.416455973404,
|
||||||
|
"z": 169.1161662197635,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段连接点拖拽 7`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4781.627010602477,
|
||||||
|
"y": -5965.4226837787755,
|
||||||
|
"z": 206.045225510004,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段连接点拖拽 8`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4781.627010602477,
|
||||||
|
"y": -5965.4226837787755,
|
||||||
|
"z": 206.045225510004,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段连接点拖拽 9`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4704.992717868391,
|
||||||
|
"y": -5089.488709643054,
|
||||||
|
"z": 1250.7720344676763,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段连接点拖拽 10`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4628.358425134305,
|
||||||
|
"y": -4213.554735507332,
|
||||||
|
"z": 2295.4988434253487,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段连接点拖拽 11`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4628.358425134305,
|
||||||
|
"y": -4213.554735507332,
|
||||||
|
"z": 2295.4988434253487,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段连接点拖拽 12`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 3442.5773443702283,
|
||||||
|
"y": -4281.794751914184,
|
||||||
|
"z": 1282.712218082731,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段连接点拖拽 13`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 2256.79626360615,
|
||||||
|
"y": -4350.034768321036,
|
||||||
|
"z": 269.9255927401132,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段连接点拖拽 14`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 2261.752779030607,
|
||||||
|
"y": -4406.687998862022,
|
||||||
|
"z": 1898.4589127575264,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段连接点拖拽 15`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 2266.709294455064,
|
||||||
|
"y": -4463.341229403009,
|
||||||
|
"z": 3526.992232774939,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段连接点拖拽 16`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 3450.140391034055,
|
||||||
|
"y": -4368.240770849953,
|
||||||
|
"z": 3767.6582816246537,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段连接点拖拽 17`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4633.571487613046,
|
||||||
|
"y": -4273.140312296899,
|
||||||
|
"z": 4008.3243304743673,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段连接点拖拽 18`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4633.571487613046,
|
||||||
|
"y": -4273.140312296899,
|
||||||
|
"z": 4008.324330474368,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段连接点拖拽 19`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4702.509796382463,
|
||||||
|
"y": -5061.108787195242,
|
||||||
|
"z": 3851.2457381799186,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 三线段连接点拖拽 20`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 4771.44810515188,
|
||||||
|
"y": -5849.077262093586,
|
||||||
|
"z": 3694.167145885469,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 中间点拖拽 1`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": 0,
|
||||||
|
"z": -1759.3364756864237,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 中间点拖拽 2`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": -1270.3243319424719,
|
||||||
|
"z": -1756.964229759154,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 中间点拖拽 3`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": -2540.6486638849437,
|
||||||
|
"z": -1754.5919838318846,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 中间点拖拽 4`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": -2593.58003880636,
|
||||||
|
"z": 1763.9937876113904,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 中间点拖拽 5`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": -2646.5114137277756,
|
||||||
|
"z": 5282.579559054666,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 中间点拖拽 6`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": -1323.2557068638878,
|
||||||
|
"z": 5229.64818413325,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 中间点拖拽 7`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": 0,
|
||||||
|
"z": 5176.716809211834,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 中间点拖拽 8`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": 0,
|
||||||
|
"z": 5176.716809211834,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 中间点拖拽 9`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 152.18826649869084,
|
||||||
|
"y": 0,
|
||||||
|
"z": 3926.7168092118336,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 中间点拖拽 10`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": -1452.394394942868,
|
||||||
|
"y": 0,
|
||||||
|
"z": 2676.716809211834,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 中间点拖拽 11`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": -1452.394394942868,
|
||||||
|
"y": 0,
|
||||||
|
"z": 458.6901667627053,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 中间点拖拽 12`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": -1452.394394942868,
|
||||||
|
"y": 0,
|
||||||
|
"z": -1759.3364756864237,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 中间点拖拽 13`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 152.1882664986906,
|
||||||
|
"y": 0,
|
||||||
|
"z": -1759.3364756864237,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 中间点拖拽 14`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": 0,
|
||||||
|
"z": -1759.3364756864237,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 二线段拉伸 1`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": 0,
|
||||||
|
"z": -1759.3364756864237,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 二线段拉伸 2`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": -2540.6486638849437,
|
||||||
|
"z": -1754.5919838318846,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 二线段拉伸 3`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": -2646.5114137277756,
|
||||||
|
"z": 2782.5795590546654,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 二线段拉伸 4`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": 0,
|
||||||
|
"z": 2676.716809211834,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 二线段拉伸 5`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": 0,
|
||||||
|
"z": 2676.716809211834,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 二线段拉伸 6`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": -3952.394394942868,
|
||||||
|
"y": 0,
|
||||||
|
"z": 2676.716809211834,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 二线段拉伸 7`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": -3952.394394942868,
|
||||||
|
"y": 0,
|
||||||
|
"z": -1759.3364756864237,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 二线段拉伸 8`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": 0,
|
||||||
|
"z": -1759.3364756864237,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 连接点拖拽 1`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": 0,
|
||||||
|
"z": -1759.3364756864237,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 连接点拖拽 2`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": -1270.3243319424719,
|
||||||
|
"z": -1756.964229759154,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 连接点拖拽 3`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": -2540.6486638849437,
|
||||||
|
"z": -1754.5919838318846,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 连接点拖拽 4`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": -2593.58003880636,
|
||||||
|
"z": 513.9937876113904,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 连接点拖拽 5`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": -2646.5114137277756,
|
||||||
|
"z": 2782.5795590546654,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 连接点拖拽 6`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": -1323.2557068638878,
|
||||||
|
"z": 4229.64818413325,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 连接点拖拽 7`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": 0,
|
||||||
|
"z": 5676.716809211834,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 连接点拖拽 8`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": 0,
|
||||||
|
"z": 5676.716809211834,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 连接点拖拽 9`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 152.18826649869084,
|
||||||
|
"y": 0,
|
||||||
|
"z": 4176.716809211834,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 连接点拖拽 10`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": -1452.394394942868,
|
||||||
|
"y": 0,
|
||||||
|
"z": 2676.716809211834,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 连接点拖拽 11`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": -1452.394394942868,
|
||||||
|
"y": 0,
|
||||||
|
"z": 458.6901667627053,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 连接点拖拽 12`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": -1452.394394942868,
|
||||||
|
"y": 0,
|
||||||
|
"z": -1759.3364756864237,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 连接点拖拽 13`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 152.1882664986906,
|
||||||
|
"y": 0,
|
||||||
|
"z": -1759.3364756864237,
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`三维扫掠夹点拉伸及拖拽 连接点拖拽 14`] = `
|
||||||
|
Vector3 {
|
||||||
|
"x": 1756.7709279402495,
|
||||||
|
"y": 0,
|
||||||
|
"z": -1759.3364756864237,
|
||||||
|
}
|
||||||
|
`;
|
@ -1,123 +1,123 @@
|
|||||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合多补圆弧 1`] = `7527.309534097063`;
|
exports[`顶线分段测试 三维顶线 1`] = `2721.682828800552`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合多补圆弧 2`] = `181.54910804222436`;
|
exports[`顶线分段测试 三维顶线 2`] = `4642.836785695566`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合多补圆弧 3`] = `7972.744263135363`;
|
exports[`顶线分段测试 三维顶线 3`] = `2721.76916405858`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合多补圆弧 4`] = `175.5593866359881`;
|
exports[`顶线分段测试 三维顶线 4`] = `3390.2858230567535`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合多补圆弧 5`] = `9102.21522360141`;
|
exports[`顶线分段测试 三维顶线 5`] = `4647.778784583921`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合多补圆弧 6`] = `174.8880833875153`;
|
exports[`顶线分段测试 三维顶线 6`] = `3390.392564825428`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合多补圆弧 7`] = `9850.281806459629`;
|
exports[`顶线分段测试 不闭合多补圆弧 1`] = `8332.345474217764`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合多补圆弧 8`] = `167.5163609665956`;
|
exports[`顶线分段测试 不闭合多补圆弧 2`] = `9260.51515812123`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合多补圆弧 9`] = `9201.576517258296`;
|
exports[`顶线分段测试 不闭合多补圆弧 3`] = `10060.210786043295`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合多补圆弧 10`] = `8466.391158009821`;
|
exports[`顶线分段测试 不闭合多补圆弧 4`] = `10635.124906803252`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合多补圆弧 11`] = `13771.549281343903`;
|
exports[`顶线分段测试 不闭合多补圆弧 5`] = `9520.046158289355`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合多补圆弧 12`] = `8903.394215503084`;
|
exports[`顶线分段测试 不闭合多补圆弧 6`] = `8786.945272592342`;
|
||||||
|
|
||||||
|
exports[`顶线分段测试 不闭合多补圆弧 7`] = `13951.062223956982`;
|
||||||
|
|
||||||
|
exports[`顶线分段测试 不闭合多补圆弧 8`] = `8598.01492440969`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合直线 1`] = `1107.864406779661`;
|
exports[`顶线分段测试 不闭合直线 1`] = `1107.864406779661`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合直线 2`] = `1703.186440677966`;
|
exports[`顶线分段测试 不闭合直线 2`] = `1703.186440677966`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合直线 3`] = `877.3559322033899`;
|
exports[`顶线分段测试 不闭合直线 3`] = `877.35593220339`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合直线 4`] = `1204.7457627118647`;
|
exports[`顶线分段测试 不闭合直线 4`] = `1204.7457627118647`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合直线 5`] = `760.6101694915253`;
|
exports[`顶线分段测试 不闭合直线 5`] = `760.6101694915254`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合直线 6`] = `1341.5593220338988`;
|
exports[`顶线分段测试 不闭合直线 6`] = `1341.5593220338988`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合直线 7`] = `1127.7966101694917`;
|
exports[`顶线分段测试 不闭合直线 7`] = `1127.7966101694915`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合直线圆弧 1`] = `2149.542819791226`;
|
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合直线圆弧 2`] = `3886.6189286714807`;
|
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合直线圆弧 3`] = `4288.29067911474`;
|
exports[`顶线分段测试 不闭合直线圆弧 1`] = `2149.0765416496856`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合直线圆弧 4`] = `2721.960193789361`;
|
exports[`顶线分段测试 不闭合直线圆弧 2`] = `3885.0721054475634`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合直线圆弧 5`] = `2351.778679840207`;
|
exports[`顶线分段测试 不闭合直线圆弧 3`] = `4290.352436993804`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合直线圆弧 6`] = `4128.24578371541`;
|
exports[`顶线分段测试 不闭合直线圆弧 4`] = `2720.5813805765733`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合直线圆弧2 1`] = `4393.076886867966`;
|
exports[`顶线分段测试 不闭合直线圆弧 5`] = `2351.778679840056`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合直线圆弧2 2`] = `6.566024064602179`;
|
exports[`顶线分段测试 不闭合直线圆弧 6`] = `4128.245783715364`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合直线圆弧2 3`] = `8562.229412244687`;
|
exports[`顶线分段测试 不闭合直线圆弧2 1`] = `4396.01934675645`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合直线圆弧2 4`] = `7775.24228697155`;
|
exports[`顶线分段测试 不闭合直线圆弧2 2`] = `8566.964954296875`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合直线圆弧2 5`] = `7158.345287787588`;
|
exports[`顶线分段测试 不闭合直线圆弧2 3`] = `7771.3839398258315`;
|
||||||
|
|
||||||
exports[`顶线分段测试 不闭合直线圆弧2 6`] = `11250.987271676096`;
|
exports[`顶线分段测试 不闭合直线圆弧2 4`] = `7152.883616395713`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合圆弧 1`] = `183.06306067444856`;
|
exports[`顶线分段测试 不闭合直线圆弧2 5`] = `11117.77639252228`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合圆弧 2`] = `5822.513453880229`;
|
exports[`顶线分段测试 闭合圆弧 1`] = `6933.9381077667895`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合圆弧 3`] = `6427.174944008036`;
|
exports[`顶线分段测试 闭合圆弧 2`] = `6428.240330201794`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合圆弧 4`] = `9954.439545178504`;
|
exports[`顶线分段测试 闭合圆弧 3`] = `9956.600010830436`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合圆弧 5`] = `5190.973862843558`;
|
exports[`顶线分段测试 闭合圆弧 4`] = `5191.714511479803`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合圆弧 6`] = `7730.577675302795`;
|
exports[`顶线分段测试 闭合圆弧 5`] = `7730.598935634274`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合圆弧 7`] = `14243.520190228797`;
|
exports[`顶线分段测试 闭合圆弧 6`] = `14243.548735716871`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合圆弧 8`] = `11360.440190078047`;
|
exports[`顶线分段测试 闭合圆弧 7`] = `11361.148377723342`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合圆弧 9`] = `4713.85413305274`;
|
exports[`顶线分段测试 闭合圆弧 8`] = `5816.095365378227`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合直线 1`] = `1411.8807330899142`;
|
exports[`顶线分段测试 闭合直线 1`] = `2152.655017660517`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合直线 2`] = `2152.655017660556`;
|
exports[`顶线分段测试 闭合直线 2`] = `1157.9339062625752`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合直线 3`] = `1157.9339062625943`;
|
exports[`顶线分段测试 闭合直线 3`] = `1049.3737454027569`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合直线 4`] = `1049.373745402737`;
|
exports[`顶线分段测试 闭合直线 4`] = `1007.793343552591`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合直线 5`] = `1007.7933435525692`;
|
exports[`顶线分段测试 闭合直线 5`] = `1867.3971281882955`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合直线 6`] = `1867.3971281882991`;
|
exports[`顶线分段测试 闭合直线 6`] = `711.6950394345738`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合直线 7`] = `711.6950394345639`;
|
exports[`顶线分段测试 闭合直线 7`] = `1109.709597624015`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合直线 8`] = `1109.7095976240196`;
|
exports[`顶线分段测试 闭合直线 8`] = `1099.4488714706827`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合直线 9`] = `1099.4488714706863`;
|
exports[`顶线分段测试 闭合直线 9`] = `1411.880733089909`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合直线2 1`] = `2378.824808973823`;
|
exports[`顶线分段测试 闭合直线2 1`] = `1773.6483926638061`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合直线2 2`] = `1773.6483926638098`;
|
exports[`顶线分段测试 闭合直线2 2`] = `1327.031499455764`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合直线2 3`] = `1327.0314994557618`;
|
exports[`顶线分段测试 闭合直线2 3`] = `1593.058941817248`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合直线2 4`] = `1593.058941817248`;
|
exports[`顶线分段测试 闭合直线2 4`] = `1234.7942063629357`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合直线2 5`] = `1234.7942063629366`;
|
exports[`顶线分段测试 闭合直线2 5`] = `1657.0432133817048`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合直线2 6`] = `1657.0432133817048`;
|
exports[`顶线分段测试 闭合直线2 6`] = `1812.9802996395224`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合直线2 7`] = `1812.9802996395224`;
|
exports[`顶线分段测试 闭合直线2 7`] = `1366.7470210563024`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合直线2 8`] = `1366.7470210563024`;
|
exports[`顶线分段测试 闭合直线2 8`] = `2149.6670549035985`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合直线2 9`] = `2149.6670549035985`;
|
exports[`顶线分段测试 闭合直线2 9`] = `1980.1205315844518`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合直线2 10`] = `1980.1205315844518`;
|
exports[`顶线分段测试 闭合直线2 10`] = `1613.0589418172476`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合直线2 11`] = `1613.0589418172485`;
|
exports[`顶线分段测试 闭合直线2 11`] = `1665.8400676945942`;
|
||||||
|
|
||||||
exports[`顶线分段测试 闭合直线2 12`] = `1665.8400676945942`;
|
exports[`顶线分段测试 闭合直线2 12`] = `2378.8248089738245`;
|
||||||
|
@ -0,0 +1,68 @@
|
|||||||
|
import { Matrix4, Vector3 } from "three";
|
||||||
|
import { app } from "../ApplicationServices/Application";
|
||||||
|
import { Singleton } from "../Common/Singleton";
|
||||||
|
import { equalv3 } from "../Geometry/GeUtils";
|
||||||
|
import { Orbit } from "../Geometry/Orbit";
|
||||||
|
import { DownPanelStore } from "../UI/Store/DownPanelStore";
|
||||||
|
import { PromptPointResult } from "./PromptResult";
|
||||||
|
|
||||||
|
//通过拾取的点智能的给一个UCS
|
||||||
|
export function GetPointUCS(ptRes: PromptPointResult): Matrix4 | undefined
|
||||||
|
{
|
||||||
|
const downPanelStore = DownPanelStore.GetInstance();
|
||||||
|
if (downPanelStore.EnableSmartUCS && ptRes.intersection)
|
||||||
|
{
|
||||||
|
let ucs = app.Editor.UCSMatrix;
|
||||||
|
let ucsN = new Vector3().setFromMatrixColumn(ucs, 2);
|
||||||
|
|
||||||
|
let n = ptRes.intersection.face.normal.clone().transformDirection(ptRes.intersection.object.matrixWorld);
|
||||||
|
|
||||||
|
if (equalv3(n, ucsN))//如果相同
|
||||||
|
return ucs.setPosition(ptRes.Point);
|
||||||
|
|
||||||
|
let x = new Vector3;
|
||||||
|
let y = new Vector3;
|
||||||
|
Orbit.ComputUpDirection(n, y, x);
|
||||||
|
return new Matrix4().makeBasis(x, y, n).setPosition(ptRes.Point);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
class UCSRAII extends Singleton
|
||||||
|
{
|
||||||
|
private _UCSBak: Matrix4;
|
||||||
|
|
||||||
|
private SaveUCS()
|
||||||
|
{
|
||||||
|
if (!this._UCSBak)
|
||||||
|
this._UCSBak = app.Editor.UCSMatrix;
|
||||||
|
}
|
||||||
|
|
||||||
|
set UCSMtx(mtx: Matrix4)
|
||||||
|
{
|
||||||
|
this.SaveUCS();
|
||||||
|
app.Editor.UCSMatrix = mtx;
|
||||||
|
}
|
||||||
|
|
||||||
|
SetUCSFromPointRes(ptRes: PromptPointResult): Matrix4 | undefined
|
||||||
|
{
|
||||||
|
let ucs = GetPointUCS(ptRes);
|
||||||
|
if (ucs)
|
||||||
|
{
|
||||||
|
this.SaveUCS();
|
||||||
|
app.Editor.UCSMatrix = ucs;
|
||||||
|
return ucs;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
End()
|
||||||
|
{
|
||||||
|
if (this._UCSBak)
|
||||||
|
{
|
||||||
|
app.Editor.UCSMatrix = this._UCSBak;
|
||||||
|
this._UCSBak = undefined;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export const UCSUtils = UCSRAII.GetInstance();
|
Loading…
Reference in new issue