build-dxf 0.1.67 → 0.1.69
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 +6 -2
package/package.json
CHANGED
package/src/build.js
CHANGED
|
@@ -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);
|
|
@@ -21155,7 +21159,7 @@ class DxfLineModel extends Component {
|
|
|
21155
21159
|
const cad = dxf.cad;
|
|
21156
21160
|
const dxfArray = new Float32Array(
|
|
21157
21161
|
cad.groups.flatMap((group2) => {
|
|
21158
|
-
if (group2.type !== "
|
|
21162
|
+
if (group2.type !== "wall") return [];
|
|
21159
21163
|
return group2.lines.flatMap((line) => line.points.flatMap((p2) => [p2.x, p2.y, 0]));
|
|
21160
21164
|
})
|
|
21161
21165
|
);
|