build-dxf 0.1.128 → 0.1.130
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 +4 -3
package/package.json
CHANGED
package/src/build.js
CHANGED
|
@@ -10791,7 +10791,7 @@ function innerWallLine(lines, trajectory2) {
|
|
|
10791
10791
|
const lud = new LineSegmentUndirectedGraph(option.lines), temLine = new LineSegment();
|
|
10792
10792
|
let singleLine = [];
|
|
10793
10793
|
const wallWidths = [];
|
|
10794
|
-
lud.forEachPathLine((start, end,
|
|
10794
|
+
lud.forEachPathLine((start, end, _line, index2, endType, indxeList) => {
|
|
10795
10795
|
temLine.start.copy(start);
|
|
10796
10796
|
temLine.end.copy(end);
|
|
10797
10797
|
const wallWidth = DEFAULT_WALL_WIDTH;
|
|
@@ -22148,8 +22148,9 @@ class SceneAutoGenerat {
|
|
|
22148
22148
|
await Promise.all(this.itemList.map(async (item) => await this.getModel(item)));
|
|
22149
22149
|
}
|
|
22150
22150
|
static itemParse(item) {
|
|
22151
|
-
|
|
22152
|
-
|
|
22151
|
+
const contourData = item.contour ?? item.quadContour;
|
|
22152
|
+
if (!Array.isArray(contourData) || !contourData.length) return null;
|
|
22153
|
+
const contour = Point.fromByList(contourData ?? []), rectangle = new Polygon(Qa(contour.map((p2) => [p2.x, p2.y])).map((p2) => Point.from(p2)));
|
|
22153
22154
|
rectangle.pop();
|
|
22154
22155
|
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.directionFrom(max.end) : max.end.directionFrom(max.start), shape = new THREE.Shape();
|
|
22155
22156
|
rectangle.forEach((p2, i) => {
|