Skip to content

Commit

Permalink
Merge pull request #89 from hypar-io/fix-pringle-multifloor
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheumann committed Jan 10, 2024
2 parents 63efe48 + 89b5728 commit 792cd8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LayoutFunctions/LayoutFunctionCommon/LayoutStrategies.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public static SpaceConfiguration LimitConfigsToId<TSpaceBoundary>(SpaceConfigura
for (int i = wallCandidateOptions.Count - 1; i >= 0; i--)
{
var (OrientationGuideEdge, _) = wallCandidateOptions[i];
if (OrientationGuideEdge.Line.Mid().DistanceTo(roomOrientationEdge.Mid()) > 0.01)
if (OrientationGuideEdge.Line.Mid().Project(Plane.XY).DistanceTo(roomOrientationEdge.Mid().Project(Plane.XY)) > 0.01)
{
wallCandidateOptions.RemoveAt(i);
}
Expand Down

0 comments on commit 792cd8a

Please sign in to comment.