build-dxf 0.1.77 → 0.1.78
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 -4
package/package.json
CHANGED
package/src/build.js
CHANGED
|
@@ -6585,7 +6585,7 @@ function buildDoubleWallGroup_(lines_, clearInternalLine = false) {
|
|
|
6585
6585
|
otherLines.push(line);
|
|
6586
6586
|
}
|
|
6587
6587
|
let { internalEdges, circles } = maxiCircles.maxiCircles(otherLines, (circles2) => circles2.filter(isPolyHasTrajectoryPoint));
|
|
6588
|
-
const finalCircles =
|
|
6588
|
+
const finalCircles = circles.filter((circle) => circle.length > 3);
|
|
6589
6589
|
lines_.forEach((line) => LineGroupType.removeByTypes(line, ["doubleWall", "wall"]));
|
|
6590
6590
|
const grid = new PointVirtualGrid(), finalCirclesSet = new Set(finalCircles.flat(2));
|
|
6591
6591
|
otherLines.forEach((line) => !finalCirclesSet.has(line) && grid.insert(line.center, line));
|
|
@@ -8239,7 +8239,7 @@ class DxfDataPlugin extends Pipeline {
|
|
|
8239
8239
|
line.end.add(direct.clone().multiplyScalar(-DEFAULT_WALL_WIDTH * 0.5));
|
|
8240
8240
|
}
|
|
8241
8241
|
});
|
|
8242
|
-
cad.addGroupAndOffset([...untreatedWall
|
|
8242
|
+
cad.addGroupAndOffset([...untreatedWall], { type: "wall" });
|
|
8243
8243
|
cad.addGroups(untreatedDoubleWallGroup, "doubleWall");
|
|
8244
8244
|
cad.unionGroupAll("wall");
|
|
8245
8245
|
const offsetWidth = 0.05;
|
|
@@ -8614,7 +8614,7 @@ function axisAlignCorr$1(lines, targettLine, option) {
|
|
|
8614
8614
|
}
|
|
8615
8615
|
new WallInsertObject(lines).recomputed().merge();
|
|
8616
8616
|
newLines.push(...doorLines);
|
|
8617
|
-
Point.adsorb(newLines.flatMap((line) => line.points), 1e-
|
|
8617
|
+
Point.adsorb(newLines.flatMap((line) => line.points), 1e-4);
|
|
8618
8618
|
lines = removeShortLine(lines, 0.05);
|
|
8619
8619
|
return newLines;
|
|
8620
8620
|
}
|
|
@@ -8723,7 +8723,7 @@ class BoundExt {
|
|
|
8723
8723
|
const walls = lines.filter((line) => !line.userData.isDoor);
|
|
8724
8724
|
lines = [...LineSegment.brokenLineMerging(walls, mergeLineUserData), ...doors];
|
|
8725
8725
|
WallInsertObject.recomputed(lines);
|
|
8726
|
-
lines = lines.filter((line) => line.length() >
|
|
8726
|
+
lines = lines.filter((line) => line.length() > 1e-4).filter((line) => line.userData.isDoor ? line.length() > 0.25 : true);
|
|
8727
8727
|
findCallBack && findCallBack([...exteriorLines, ...appendLines], trajectoryPoints);
|
|
8728
8728
|
return {
|
|
8729
8729
|
lines,
|