From 0f82fc6e4ea8aa84e1715532bf9dd23f6c18c72d Mon Sep 17 00:00:00 2001 From: hiron Date: Tue, 22 Mar 2022 12:54:30 +0900 Subject: [PATCH 1/2] Fix wall null error --- .../Component/Utils/Geometry/CreateMemberBrepListFromStb.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/HoaryFox/RH7/Component/Utils/Geometry/CreateMemberBrepListFromStb.cs b/HoaryFox/RH7/Component/Utils/Geometry/CreateMemberBrepListFromStb.cs index 8b9ef34e..0823ed06 100644 --- a/HoaryFox/RH7/Component/Utils/Geometry/CreateMemberBrepListFromStb.cs +++ b/HoaryFox/RH7/Component/Utils/Geometry/CreateMemberBrepListFromStb.cs @@ -371,6 +371,11 @@ private static void CheckBrepOrientation(Brep brep) private Brep ApplyWallOpen(IEnumerable opens, StbWall wall, IReadOnlyList wallPts, Brep brep) { + if (brep == null) + { + return brep; + } + double thickness = BrepMaker.Wall.GetThickness(_sections, wall); var centerCurve = new PolylineCurve(wallPts); Vector3d normal = Vector3d.CrossProduct(centerCurve.TangentAtEnd, centerCurve.TangentAtStart); From 60c3a2e0cb5e1559a235d3ce6758cd0bbbfee7b9 Mon Sep 17 00:00:00 2001 From: hiron Date: Tue, 22 Mar 2022 12:57:55 +0900 Subject: [PATCH 2/2] Updata document --- website/docs/Changelog.md | 8 ++++++++ .../docusaurus-plugin-content-docs/current/Changelog.md | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/website/docs/Changelog.md b/website/docs/Changelog.md index 8d57cccd..6610cd49 100644 --- a/website/docs/Changelog.md +++ b/website/docs/Changelog.md @@ -5,6 +5,14 @@ title: Changelog --- +## [v2.2.1 - 2022-3-22](https://github.com/hrntsm/HoaryFox/releases/tag/v2.2.1) + +### 修正 + +- v2.2.0 の変更で壁生成に失敗することがあったため、修正 + +--- + ## [v2.2.0 - 2022-3-21](https://github.com/hrntsm/HoaryFox/releases/tag/v2.2.0) ### 追加 diff --git a/website/i18n/en/docusaurus-plugin-content-docs/current/Changelog.md b/website/i18n/en/docusaurus-plugin-content-docs/current/Changelog.md index ae908a3e..67cd0f11 100644 --- a/website/i18n/en/docusaurus-plugin-content-docs/current/Changelog.md +++ b/website/i18n/en/docusaurus-plugin-content-docs/current/Changelog.md @@ -5,6 +5,14 @@ title: Changelog --- +## [v2.2.1 - 2022-3-22](https://github.com/hrntsm/HoaryFox/releases/tag/v2.2.1) + +### FIX + +- Fixed wall generation failure with v2.2.0 changes. + +--- + ## [v2.2.0 - 2022-3-21](https://github.com/hrntsm/HoaryFox/releases/tag/v2.2.0) ### ADD