build-dxf 0.1.14 → 0.1.15
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 +8 -0
package/package.json
CHANGED
package/src/build.js
CHANGED
|
@@ -7587,6 +7587,7 @@ class Scenario {
|
|
|
7587
7587
|
}
|
|
7588
7588
|
// 安装窗
|
|
7589
7589
|
installWindows(data, index2) {
|
|
7590
|
+
console.log("data", data);
|
|
7590
7591
|
const point1 = new THREE.Vector3(data.start.x, data.start.y, 0);
|
|
7591
7592
|
const point2 = new THREE.Vector3(data.end.x, data.end.y, 0);
|
|
7592
7593
|
new THREE.Vector3(data.center.x, data.center.y, 0);
|
|
@@ -7610,6 +7611,10 @@ class Scenario {
|
|
|
7610
7611
|
menModel.position.set(data.center.x, data.center.y, groundClearance);
|
|
7611
7612
|
menModel.name = `窗_${index2}`;
|
|
7612
7613
|
menModel.userData.category = "window";
|
|
7614
|
+
menModel.userData.width = distance;
|
|
7615
|
+
menModel.userData.depth = wallWidth;
|
|
7616
|
+
menModel.userData.height = height;
|
|
7617
|
+
menModel.userData.groundHeight = groundClearance;
|
|
7613
7618
|
this.group.add(menModel);
|
|
7614
7619
|
}
|
|
7615
7620
|
}
|
|
@@ -7749,6 +7754,9 @@ class Scenario {
|
|
|
7749
7754
|
menModel.scale.set(distance / size.x, (Height ? Height : this.doorHeight) / size.y, DEFAULT_WALL_WIDTH / size.z);
|
|
7750
7755
|
menModel.name = `门_${index2}`;
|
|
7751
7756
|
menModel.userData.category = "door";
|
|
7757
|
+
menModel.userData.width = distance;
|
|
7758
|
+
menModel.userData.height = Height ? Height : this.doorHeight;
|
|
7759
|
+
menModel.userData.groundHeight = groundHeight;
|
|
7752
7760
|
this.group.add(menModel);
|
|
7753
7761
|
}
|
|
7754
7762
|
result.name = `额墙_${index2}`;
|