build-dxf 0.1.18 → 0.1.19
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/package.json +1 -1
- package/src/build.js +115 -87
- package/src/index.css +1 -1
- package/src/index3.js +3 -3
- package/src/utils/CloudPoint.d.ts +1 -0
- package/src/utils/DxfSystem/components/Dxf.d.ts +3 -3
- package/src/utils/DxfSystem/plugin/ModelDataPlugin/components/WhiteModel.d.ts +0 -1
- package/src/utils/DxfSystem/utils/BoundExt.d.ts +0 -4
- package/src/utils/DxfSystem/utils/SceneAutoGenerat.d.ts +1 -1
- package/src/utils/LineSegment.d.ts +4 -0
- package/src/utils/modelScenario/scenario.d.ts +2 -2
package/package.json
CHANGED
package/src/build.js
CHANGED
|
@@ -2107,6 +2107,34 @@ class LineSegment {
|
|
|
2107
2107
|
return true;
|
|
2108
2108
|
});
|
|
2109
2109
|
}
|
|
2110
|
+
static createModifyManager() {
|
|
2111
|
+
const modifyMap = new MapEnhance();
|
|
2112
|
+
function setPoint(line, point2, value) {
|
|
2113
|
+
if (!modifyMap.has(line)) modifyMap.set(line, new ArrayMap());
|
|
2114
|
+
const arrayMap = modifyMap.get(line);
|
|
2115
|
+
arrayMap.append(point2, value);
|
|
2116
|
+
}
|
|
2117
|
+
function modify2() {
|
|
2118
|
+
modifyMap.forEach((arrayMap, line) => {
|
|
2119
|
+
arrayMap.forEach((list, point2) => {
|
|
2120
|
+
const otherPoint = line.getAnotherPoint(point2);
|
|
2121
|
+
list.push(point2);
|
|
2122
|
+
list.sort((p1, p2) => p2.distance(otherPoint, true) - p1.distance(otherPoint, true));
|
|
2123
|
+
if (list[0] === point2) point2.copy(list[1]);
|
|
2124
|
+
else point2.copy(list[0]);
|
|
2125
|
+
});
|
|
2126
|
+
});
|
|
2127
|
+
modifyMap.clear();
|
|
2128
|
+
}
|
|
2129
|
+
return {
|
|
2130
|
+
get setPoint() {
|
|
2131
|
+
return setPoint;
|
|
2132
|
+
},
|
|
2133
|
+
get modify() {
|
|
2134
|
+
return modify2;
|
|
2135
|
+
}
|
|
2136
|
+
};
|
|
2137
|
+
}
|
|
2110
2138
|
}
|
|
2111
2139
|
class Point {
|
|
2112
2140
|
x;
|
|
@@ -5618,7 +5646,7 @@ class BoundExt {
|
|
|
5618
5646
|
exteriorLines.forEach((line) => correction(line, wallWidth, appendLines, grid, quadtree));
|
|
5619
5647
|
lines.push(...appendLines.filter((line) => line.length() > 1e-9));
|
|
5620
5648
|
recomputedWindow(...lines);
|
|
5621
|
-
lines = lines.filter((line) => line.length() >
|
|
5649
|
+
lines = lines.filter((line) => line.length() > 0.01);
|
|
5622
5650
|
findCallBack && findCallBack(exteriorLines, trajectoryPoints);
|
|
5623
5651
|
return {
|
|
5624
5652
|
lines,
|
|
@@ -6063,34 +6091,36 @@ class Scenario {
|
|
|
6063
6091
|
return false;
|
|
6064
6092
|
});
|
|
6065
6093
|
const Mesh = this.drawTheModel(E, 0, Number(i), wallHeight);
|
|
6066
|
-
Mesh
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
this.installWindows(doubleLinesWindow[x], x);
|
|
6076
|
-
this.group.add(this.windowTreatment(doubleLinesWindow[x], Mesh, wallHeight));
|
|
6077
|
-
} else if (houMesh) {
|
|
6078
|
-
if (Number(x) === doubleLinesWindow.length - 1) {
|
|
6079
|
-
const edges = new THREE.EdgesGeometry(this.windowTreatment(doubleLinesWindow[x], houMesh, wallHeight).geometry);
|
|
6094
|
+
if (Mesh) {
|
|
6095
|
+
Mesh.material.envMap = texture;
|
|
6096
|
+
Mesh.material.needsUpdate = true;
|
|
6097
|
+
const doubleLinesWindow = doubleWinDrawLine(a[i]);
|
|
6098
|
+
if (doubleLinesWindow && doubleLinesWindow.length != 0) {
|
|
6099
|
+
let houMesh = null;
|
|
6100
|
+
for (const x in doubleLinesWindow) {
|
|
6101
|
+
if (doubleLinesWindow.length === 1) {
|
|
6102
|
+
const edges = new THREE.EdgesGeometry(this.windowTreatment(doubleLinesWindow[x], Mesh, wallHeight).geometry);
|
|
6080
6103
|
new THREE.LineSegments(edges, new THREE.LineBasicMaterial({ color: 0 }));
|
|
6081
6104
|
this.installWindows(doubleLinesWindow[x], x);
|
|
6082
|
-
this.group.add(this.windowTreatment(doubleLinesWindow[x],
|
|
6105
|
+
this.group.add(this.windowTreatment(doubleLinesWindow[x], Mesh, wallHeight));
|
|
6106
|
+
} else if (houMesh) {
|
|
6107
|
+
if (Number(x) === doubleLinesWindow.length - 1) {
|
|
6108
|
+
const edges = new THREE.EdgesGeometry(this.windowTreatment(doubleLinesWindow[x], houMesh, wallHeight).geometry);
|
|
6109
|
+
new THREE.LineSegments(edges, new THREE.LineBasicMaterial({ color: 0 }));
|
|
6110
|
+
this.installWindows(doubleLinesWindow[x], x);
|
|
6111
|
+
this.group.add(this.windowTreatment(doubleLinesWindow[x], houMesh, wallHeight));
|
|
6112
|
+
} else {
|
|
6113
|
+
this.installWindows(doubleLinesWindow[x], x);
|
|
6114
|
+
houMesh = this.windowTreatment(doubleLinesWindow[x], houMesh, wallHeight);
|
|
6115
|
+
}
|
|
6083
6116
|
} else {
|
|
6084
6117
|
this.installWindows(doubleLinesWindow[x], x);
|
|
6085
|
-
houMesh = this.windowTreatment(doubleLinesWindow[x],
|
|
6118
|
+
houMesh = this.windowTreatment(doubleLinesWindow[x], Mesh, wallHeight);
|
|
6086
6119
|
}
|
|
6087
|
-
} else {
|
|
6088
|
-
this.installWindows(doubleLinesWindow[x], x);
|
|
6089
|
-
houMesh = this.windowTreatment(doubleLinesWindow[x], Mesh, wallHeight);
|
|
6090
6120
|
}
|
|
6121
|
+
} else {
|
|
6122
|
+
this.group.add(Mesh);
|
|
6091
6123
|
}
|
|
6092
|
-
} else {
|
|
6093
|
-
this.group.add(Mesh);
|
|
6094
6124
|
}
|
|
6095
6125
|
}
|
|
6096
6126
|
}
|
|
@@ -6104,28 +6134,33 @@ class Scenario {
|
|
|
6104
6134
|
// 可以不是矩形
|
|
6105
6135
|
new THREE.Vector3(data[3].x, data[3].y, this.height ? this.height : 0)
|
|
6106
6136
|
];
|
|
6107
|
-
const
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
side: THREE.DoubleSide
|
|
6111
|
-
// roughness: this.numdu,
|
|
6112
|
-
// metalness: 0.0,
|
|
6113
|
-
// envMapRotation: new THREE.Euler(0, 0, 0),
|
|
6114
|
-
// polygonOffset: true,
|
|
6115
|
-
// polygonOffsetFactor: 10,
|
|
6116
|
-
// polygonOffsetUnits: 10,
|
|
6117
|
-
});
|
|
6118
|
-
const cube = new THREE.Mesh(geometry, material);
|
|
6119
|
-
const edges = new THREE.EdgesGeometry(geometry);
|
|
6120
|
-
new THREE.LineSegments(edges, new THREE.LineBasicMaterial({ color: 0 }));
|
|
6121
|
-
if (num === 0) {
|
|
6122
|
-
cube.name = `双线墙_${index2}`;
|
|
6123
|
-
cube.userData.category = "doubleWall";
|
|
6137
|
+
const spacing = basePoints[0].distanceTo(basePoints[3]);
|
|
6138
|
+
if (spacing < 5e-3) {
|
|
6139
|
+
return null;
|
|
6124
6140
|
} else {
|
|
6125
|
-
|
|
6126
|
-
|
|
6141
|
+
const geometry = this.createParallelepipedFromBase(basePoints, wallHeight);
|
|
6142
|
+
const material = new THREE.MeshStandardMaterial({
|
|
6143
|
+
color: this.color,
|
|
6144
|
+
side: THREE.DoubleSide
|
|
6145
|
+
// roughness: this.numdu,
|
|
6146
|
+
// metalness: 0.0,
|
|
6147
|
+
// envMapRotation: new THREE.Euler(0, 0, 0),
|
|
6148
|
+
// polygonOffset: true,
|
|
6149
|
+
// polygonOffsetFactor: 10,
|
|
6150
|
+
// polygonOffsetUnits: 10,
|
|
6151
|
+
});
|
|
6152
|
+
const cube = new THREE.Mesh(geometry, material);
|
|
6153
|
+
const edges = new THREE.EdgesGeometry(geometry);
|
|
6154
|
+
new THREE.LineSegments(edges, new THREE.LineBasicMaterial({ color: 0 }));
|
|
6155
|
+
if (num === 0) {
|
|
6156
|
+
cube.name = `双线墙_${index2}`;
|
|
6157
|
+
cube.userData.category = "doubleWall";
|
|
6158
|
+
} else {
|
|
6159
|
+
cube.name = `单线墙_${index2}`;
|
|
6160
|
+
cube.userData.category = "wall";
|
|
6161
|
+
}
|
|
6162
|
+
return cube;
|
|
6127
6163
|
}
|
|
6128
|
-
return cube;
|
|
6129
6164
|
}
|
|
6130
6165
|
// 执行偏移
|
|
6131
6166
|
executionOffset(data, index2, wallHeight) {
|
|
@@ -6622,39 +6657,41 @@ class Scenario {
|
|
|
6622
6657
|
}
|
|
6623
6658
|
const wallHeight = listS[x].wallHeight;
|
|
6624
6659
|
let Mesh = this.executionOffset(a, Number(x) / 2, wallHeight);
|
|
6625
|
-
if (
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
this.installWindows(winDraw[x2], x2);
|
|
6632
|
-
let mesh = this.windowTreatment(winDraw[x2], Mesh, wallHeight);
|
|
6633
|
-
mesh.name = `单线墙_${Number(x2) / 2}`;
|
|
6634
|
-
mesh.userData.category = "wall";
|
|
6635
|
-
this.group.add(mesh);
|
|
6636
|
-
} else if (houMesh) {
|
|
6637
|
-
if (Number(x2) === winDraw.length - 1) {
|
|
6638
|
-
const edges = new THREE.EdgesGeometry(this.windowTreatment(winDraw[x2], houMesh, wallHeight).geometry);
|
|
6639
|
-
this.installWindows(winDraw[x2], x2);
|
|
6660
|
+
if (Mesh) {
|
|
6661
|
+
if (winDraw && winDraw.length > 0) {
|
|
6662
|
+
let houMesh = null;
|
|
6663
|
+
for (const x2 in winDraw) {
|
|
6664
|
+
if (winDraw.length === 1) {
|
|
6665
|
+
const edges = new THREE.EdgesGeometry(this.windowTreatment(winDraw[x2], Mesh, wallHeight).geometry);
|
|
6640
6666
|
new THREE.LineSegments(edges, new THREE.LineBasicMaterial({ color: 0 }));
|
|
6641
|
-
|
|
6667
|
+
this.installWindows(winDraw[x2], x2);
|
|
6668
|
+
let mesh = this.windowTreatment(winDraw[x2], Mesh, wallHeight);
|
|
6642
6669
|
mesh.name = `单线墙_${Number(x2) / 2}`;
|
|
6643
6670
|
mesh.userData.category = "wall";
|
|
6644
6671
|
this.group.add(mesh);
|
|
6672
|
+
} else if (houMesh) {
|
|
6673
|
+
if (Number(x2) === winDraw.length - 1) {
|
|
6674
|
+
const edges = new THREE.EdgesGeometry(this.windowTreatment(winDraw[x2], houMesh, wallHeight).geometry);
|
|
6675
|
+
this.installWindows(winDraw[x2], x2);
|
|
6676
|
+
new THREE.LineSegments(edges, new THREE.LineBasicMaterial({ color: 0 }));
|
|
6677
|
+
let mesh = this.windowTreatment(winDraw[x2], houMesh, wallHeight);
|
|
6678
|
+
mesh.name = `单线墙_${Number(x2) / 2}`;
|
|
6679
|
+
mesh.userData.category = "wall";
|
|
6680
|
+
this.group.add(mesh);
|
|
6681
|
+
} else {
|
|
6682
|
+
this.installWindows(winDraw[x2], x2);
|
|
6683
|
+
houMesh = this.windowTreatment(winDraw[x2], houMesh, wallHeight);
|
|
6684
|
+
}
|
|
6645
6685
|
} else {
|
|
6646
6686
|
this.installWindows(winDraw[x2], x2);
|
|
6647
|
-
houMesh = this.windowTreatment(winDraw[x2],
|
|
6687
|
+
houMesh = this.windowTreatment(winDraw[x2], Mesh, wallHeight);
|
|
6648
6688
|
}
|
|
6649
|
-
} else {
|
|
6650
|
-
this.installWindows(winDraw[x2], x2);
|
|
6651
|
-
houMesh = this.windowTreatment(winDraw[x2], Mesh, wallHeight);
|
|
6652
6689
|
}
|
|
6690
|
+
} else {
|
|
6691
|
+
Mesh.name = `单线墙_${Number(x) / 2}`;
|
|
6692
|
+
Mesh.userData.category = "wall";
|
|
6693
|
+
this.group.add(Mesh);
|
|
6653
6694
|
}
|
|
6654
|
-
} else {
|
|
6655
|
-
Mesh.name = `单线墙_${Number(x) / 2}`;
|
|
6656
|
-
Mesh.userData.category = "wall";
|
|
6657
|
-
this.group.add(Mesh);
|
|
6658
6695
|
}
|
|
6659
6696
|
}
|
|
6660
6697
|
}
|
|
@@ -13807,6 +13844,9 @@ class SceneAutoGenerat {
|
|
|
13807
13844
|
await this.buildPlane(this.lines);
|
|
13808
13845
|
await this.buildWall();
|
|
13809
13846
|
globalScenario.scene.add(this.scene);
|
|
13847
|
+
globalScenario.scene.traverse((child) => {
|
|
13848
|
+
child.updateWorldMatrix(false, false);
|
|
13849
|
+
});
|
|
13810
13850
|
}
|
|
13811
13851
|
buildPlane(lines) {
|
|
13812
13852
|
lines = lineSegmentClipping(lines, 0);
|
|
@@ -13886,6 +13926,7 @@ class SceneAutoGenerat {
|
|
|
13886
13926
|
await Promise.all(this.itemList.map(async (item) => await this.getModel(item)));
|
|
13887
13927
|
}
|
|
13888
13928
|
static itemParse(item) {
|
|
13929
|
+
if (!Array.isArray(item.contour) || !item.contour.length) return null;
|
|
13889
13930
|
const contour = Point.fromByList(item.contour ?? []), rectangle = new Polygon(Qa(contour.map((p) => [p.x, p.y])).map((p) => Point.from(p)));
|
|
13890
13931
|
rectangle.pop();
|
|
13891
13932
|
const z = item.box.min.z, height = Math.abs(item.box.max.z - z), max = rectangle.getMaxLengthInfo(), min = rectangle.getMinLengthInfo(), direction = max.start.y < max.end.y ? max.start.direction(max.end) : max.end.direction(max.start), shape = new THREE.Shape();
|
|
@@ -14684,7 +14725,6 @@ class WhiteModel extends Component {
|
|
|
14684
14725
|
whiteModelGroup = new THREE.Group();
|
|
14685
14726
|
// dxf数据白模边缘线
|
|
14686
14727
|
whiteModelLineGroup = new THREE.Group();
|
|
14687
|
-
material = new THREE.MeshStandardMaterial({ color: 16777215, transparent: true, opacity: 0.8, side: THREE.DoubleSide });
|
|
14688
14728
|
itemList = [];
|
|
14689
14729
|
promise;
|
|
14690
14730
|
/** 设置物品列表
|
|
@@ -14730,13 +14770,7 @@ class WhiteModel extends Component {
|
|
|
14730
14770
|
toOBJ() {
|
|
14731
14771
|
return new Promise(async (resolve) => {
|
|
14732
14772
|
await this.promise;
|
|
14733
|
-
this.
|
|
14734
|
-
this.material.needsUpdate = true;
|
|
14735
|
-
setTimeout(() => {
|
|
14736
|
-
resolve(exporter.parse(this.whiteModelGroup));
|
|
14737
|
-
this.material.opacity = 0.8;
|
|
14738
|
-
this.material.transparent = true;
|
|
14739
|
-
}, 20);
|
|
14773
|
+
resolve(exporter.parse(this.whiteModelGroup));
|
|
14740
14774
|
});
|
|
14741
14775
|
}
|
|
14742
14776
|
/**
|
|
@@ -14748,19 +14782,13 @@ class WhiteModel extends Component {
|
|
|
14748
14782
|
if (!glbExporter) glbExporter = new gltf.GLTFExporter();
|
|
14749
14783
|
return new Promise(async (resolve) => {
|
|
14750
14784
|
await this.promise;
|
|
14751
|
-
this.
|
|
14752
|
-
|
|
14753
|
-
|
|
14754
|
-
|
|
14755
|
-
|
|
14756
|
-
|
|
14757
|
-
|
|
14758
|
-
}, () => {
|
|
14759
|
-
resolve(void 0);
|
|
14760
|
-
}, {
|
|
14761
|
-
binary
|
|
14762
|
-
});
|
|
14763
|
-
}, 20);
|
|
14785
|
+
glbExporter.parse(this.whiteModelGroup.children, (gltf2) => {
|
|
14786
|
+
resolve(gltf2);
|
|
14787
|
+
}, () => {
|
|
14788
|
+
resolve(void 0);
|
|
14789
|
+
}, {
|
|
14790
|
+
binary
|
|
14791
|
+
});
|
|
14764
14792
|
});
|
|
14765
14793
|
}
|
|
14766
14794
|
/**
|
package/src/index.css
CHANGED
package/src/index3.js
CHANGED
|
@@ -11772,7 +11772,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11772
11772
|
onMousedown: dragMoveHelper,
|
|
11773
11773
|
class: normalizeClass([{ "border-b-[#eee] border-b-1": toolBarExpand.value }, "flex flex-row justify-between header text-[14px] font-bold p-[10px 0px]"])
|
|
11774
11774
|
}, [
|
|
11775
|
-
_cache[12] || (_cache[12] = createStaticVNode('<div class="flex flex-row" data-v-
|
|
11775
|
+
_cache[12] || (_cache[12] = createStaticVNode('<div class="flex flex-row" data-v-adaee1e3><div class="p-[2px_5px] flex items-center pointer-events-none" data-v-adaee1e3><svg fill="#aaa" width="20" height="20" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" data-v-adaee1e3><path d="M341.333333 298.666667a85.333333 85.333333 0 1 0 0-170.666667 85.333333 85.333333 0 0 0 0 170.666667z m0 298.666666a85.333333 85.333333 0 1 0 0-170.666666 85.333333 85.333333 0 0 0 0 170.666666z m85.333334 213.333334a85.333333 85.333333 0 1 1-170.666667 0 85.333333 85.333333 0 0 1 170.666667 0z m256-512a85.333333 85.333333 0 1 0 0-170.666667 85.333333 85.333333 0 0 0 0 170.666667z m85.333333 213.333333a85.333333 85.333333 0 1 1-170.666667 0 85.333333 85.333333 0 0 1 170.666667 0z m-85.333333 384a85.333333 85.333333 0 1 0 0-170.666667 85.333333 85.333333 0 0 0 0 170.666667z" data-v-adaee1e3></path></svg></div><h5 class="flex text-nowrap text-[12px] items-center pointer-events-none" data-v-adaee1e3>绘制工具</h5></div>', 1)),
|
|
11776
11776
|
createElementVNode("div", {
|
|
11777
11777
|
onMousedown: _cache[0] || (_cache[0] = (e) => e.stopPropagation()),
|
|
11778
11778
|
onClick: _cache[1] || (_cache[1] = ($event) => toolBarExpand.value = !toolBarExpand.value),
|
|
@@ -11886,7 +11886,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11886
11886
|
style: { "padding": "5px", "font-size": "10px" },
|
|
11887
11887
|
size: "small",
|
|
11888
11888
|
type: "primary",
|
|
11889
|
-
onClick: _cache[4] || (_cache[4] = ($event) => unref(dxfSystem).
|
|
11889
|
+
onClick: _cache[4] || (_cache[4] = ($event) => unref(dxfSystem).CorrectionDxf.downloadOriginalData("json.json"))
|
|
11890
11890
|
}, {
|
|
11891
11891
|
default: withCtx(() => _cache[17] || (_cache[17] = [
|
|
11892
11892
|
createTextVNode(" 下载Json ", -1)
|
|
@@ -12011,7 +12011,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
12011
12011
|
}
|
|
12012
12012
|
return target;
|
|
12013
12013
|
};
|
|
12014
|
-
const EditorTool = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
12014
|
+
const EditorTool = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-adaee1e3"]]);
|
|
12015
12015
|
class Editor extends Component {
|
|
12016
12016
|
static name = "Editor";
|
|
12017
12017
|
container = new THREE.Group();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -80,9 +80,9 @@ export declare class Dxf<TEventMap extends {} = {}> extends Component<{
|
|
|
80
80
|
*/
|
|
81
81
|
lineDataToOriginalData(lines: LineSegment<LineUserData>[], quadtree?: Quadtree): OriginalDataItem[];
|
|
82
82
|
/**
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
* 下载原始json
|
|
84
|
+
* @param filename
|
|
85
|
+
*/
|
|
86
86
|
downloadOriginalData(filename: string): Promise<void>;
|
|
87
87
|
/** 获取绘制数据
|
|
88
88
|
*/
|
|
@@ -12,7 +12,6 @@ export declare class WhiteModel extends Component<{
|
|
|
12
12
|
Variable: Variable | null;
|
|
13
13
|
whiteModelGroup: THREE.Group<THREE.Object3DEventMap>;
|
|
14
14
|
whiteModelLineGroup: THREE.Group<THREE.Object3DEventMap>;
|
|
15
|
-
material: THREE.MeshStandardMaterial;
|
|
16
15
|
itemList: any[];
|
|
17
16
|
promise?: Promise<THREE.Group>;
|
|
18
17
|
/** 设置物品列表
|
|
@@ -15,10 +15,6 @@ interface IByTrajAnOriginData {
|
|
|
15
15
|
updateDoubleWallGroup?: boolean;
|
|
16
16
|
findCallBack?: (lines: LineSegment[], trajectory: Point[]) => void;
|
|
17
17
|
}
|
|
18
|
-
/** 执行纠正
|
|
19
|
-
* @param line
|
|
20
|
-
* @param grid
|
|
21
|
-
*/
|
|
22
18
|
export declare class BoundExt {
|
|
23
19
|
/** 通过轨迹点查找外墙
|
|
24
20
|
* @param lines
|
|
@@ -307,4 +307,8 @@ export declare class LineSegment<T = Record<string, any>> {
|
|
|
307
307
|
* @param clippingLine
|
|
308
308
|
*/
|
|
309
309
|
static clippingByLine(target: LineSegment, clippingLine: LineSegment, callBack?: (newLine: LineSegment, line: LineSegment) => void): LineSegment<Record<string, any>>[];
|
|
310
|
+
static createModifyManager(): {
|
|
311
|
+
readonly setPoint: (line: LineSegment, point: Point, value: Point) => void;
|
|
312
|
+
readonly modify: () => void;
|
|
313
|
+
};
|
|
310
314
|
}
|
|
@@ -39,8 +39,8 @@ export default class Scenario {
|
|
|
39
39
|
constructor(scene: THREE.Scene, camera: THREE.PerspectiveCamera, renderer: THREE.WebGLRenderer, controls: OrbitControls);
|
|
40
40
|
drawGraphics(lines: LineSegment[], z: number, trajectoryJson: any): Promise<any>;
|
|
41
41
|
splitProcessData(lines: LineSegment[], texture: THREE.DataTexture): void;
|
|
42
|
-
drawTheModel(data: any, num: number, index: number, wallHeight: number): THREE.Mesh<THREE.ExtrudeGeometry, THREE.MeshStandardMaterial, THREE.Object3DEventMap
|
|
43
|
-
executionOffset(data: any, index: number, wallHeight: number): THREE.Mesh<THREE.ExtrudeGeometry, THREE.MeshStandardMaterial, THREE.Object3DEventMap> | undefined;
|
|
42
|
+
drawTheModel(data: any, num: number, index: number, wallHeight: number): THREE.Mesh<THREE.ExtrudeGeometry, THREE.MeshStandardMaterial, THREE.Object3DEventMap> | null;
|
|
43
|
+
executionOffset(data: any, index: number, wallHeight: number): THREE.Mesh<THREE.ExtrudeGeometry, THREE.MeshStandardMaterial, THREE.Object3DEventMap> | null | undefined;
|
|
44
44
|
windowTreatment(dblWin: any, mesh: any, wallHeight: number): Brush;
|
|
45
45
|
TheHandlingOfTheDoor1(data: LineSegment<LineUserData>): THREE.Vector3[];
|
|
46
46
|
TheHandlingOfTheDoor(data: LineSegment<LineUserData>[]): void;
|