build-dxf 0.1.62 → 0.1.65
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 +7 -3
package/package.json
CHANGED
package/src/build.js
CHANGED
|
@@ -8444,7 +8444,7 @@ LoadModel.addNameMap("wall", "单线墙");
|
|
|
8444
8444
|
LoadModel.addNameMap("doubleWall", "双线墙");
|
|
8445
8445
|
LoadModel.addNameMap("balcony", "阳台");
|
|
8446
8446
|
class BayWindow {
|
|
8447
|
-
bayWindowExpansion;
|
|
8447
|
+
bayWindowExpansion = [];
|
|
8448
8448
|
static _instance;
|
|
8449
8449
|
static get Instance() {
|
|
8450
8450
|
return BayWindow._instance;
|
|
@@ -9291,6 +9291,7 @@ class Scenario {
|
|
|
9291
9291
|
}
|
|
9292
9292
|
this.group = new Group$1();
|
|
9293
9293
|
this.expandedList = [];
|
|
9294
|
+
if (!BayWindow.Instance) new BayWindow();
|
|
9294
9295
|
BayWindow.Instance.bayWindowExpansion = [];
|
|
9295
9296
|
this.splitProcessData(lines, this.texture);
|
|
9296
9297
|
this.scene.add(this.group);
|
|
@@ -10084,7 +10085,6 @@ class Scenario {
|
|
|
10084
10085
|
let balconyLins = [];
|
|
10085
10086
|
for (const i in data) {
|
|
10086
10087
|
if (data[i].userData.isBalconyRailing) {
|
|
10087
|
-
console.log("data", data[i]);
|
|
10088
10088
|
balconyLins.push(data[i]);
|
|
10089
10089
|
data.splice(i, 1);
|
|
10090
10090
|
}
|
|
@@ -17869,9 +17869,13 @@ class SceneAutoGenerat {
|
|
|
17869
17869
|
}
|
|
17870
17870
|
buildPlane(lines) {
|
|
17871
17871
|
lines = lineSegmentClipping(lines, 0);
|
|
17872
|
+
lines = lines.filter((line) => {
|
|
17873
|
+
if (LineGroupType.hasType(line, "bayWindow") && !line.userData.isBayWindow) return false;
|
|
17874
|
+
return true;
|
|
17875
|
+
});
|
|
17872
17876
|
LineSegment.groupByPath(lines).forEach((lines2, i) => {
|
|
17873
17877
|
const removeSet = findDiscretePointLine2(lines2, null, true);
|
|
17874
|
-
lines2 = lines2.filter((line) => !removeSet.has(line)
|
|
17878
|
+
lines2 = lines2.filter((line) => !removeSet.has(line));
|
|
17875
17879
|
const doors = lines2.filter((line) => line.userData.isDoor), maxiCircles2 = new MaxiCircles(), { circles } = maxiCircles2.miniCircle(lines2, { circleEdges: doors, side: Side.IN }), { circles: outCircles } = maxiCircles2.miniCircle(lines2, { circleEdges: doors, side: Side.OUT }), ploys = circles.map(((p2) => Polygon.fromByLinePath(p2)));
|
|
17876
17880
|
outCircles.forEach((circle) => {
|
|
17877
17881
|
const polygon2 = Polygon.fromByLinePath(circle);
|