build-dxf 0.1.65 → 0.1.67
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 +2 -6
package/package.json
CHANGED
package/src/build.js
CHANGED
|
@@ -10083,7 +10083,7 @@ class Scenario {
|
|
|
10083
10083
|
// 单线墙总处理
|
|
10084
10084
|
overallTreatmentOfSingleLineWalls(data) {
|
|
10085
10085
|
let balconyLins = [];
|
|
10086
|
-
for (
|
|
10086
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
10087
10087
|
if (data[i].userData.isBalconyRailing) {
|
|
10088
10088
|
balconyLins.push(data[i]);
|
|
10089
10089
|
data.splice(i, 1);
|
|
@@ -17869,13 +17869,9 @@ 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
|
-
});
|
|
17876
17872
|
LineSegment.groupByPath(lines).forEach((lines2, i) => {
|
|
17877
17873
|
const removeSet = findDiscretePointLine2(lines2, null, true);
|
|
17878
|
-
lines2 = lines2.filter((line) => !removeSet.has(line));
|
|
17874
|
+
lines2 = lines2.filter((line) => !removeSet.has(line) && !line.userData.isBayWindow);
|
|
17879
17875
|
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)));
|
|
17880
17876
|
outCircles.forEach((circle) => {
|
|
17881
17877
|
const polygon2 = Polygon.fromByLinePath(circle);
|