Skip to content

Commit

Permalink
Fixed an issue
Browse files Browse the repository at this point in the history
  • Loading branch information
srudenkoamc committed Oct 25, 2023
1 parent 5b41911 commit 0ad201f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions LayoutFunctions/Doors/src/Doors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,9 @@ private static void RemoveDoors(List<Door> doors,
private static List<Line>? RoomCorridorEdges(SpaceBoundary room, IEnumerable<Line> corridorSegments)
{
var roomSegments = room.Boundary.Perimeter.CollinearPointsRemoved().Segments().Select(
s => s.TransformedLine(room.Transform));
var corridorEdges = WallGeneration.FindAllEdgesAdjacentToSegments(roomSegments, corridorSegments, out _);
s => s.TransformedLine(room.Transform)).Select(l => new RoomEdge() { Line = l });
var corridorEdges = WallGeneration.FindAllEdgesAdjacentToSegments(roomSegments, corridorSegments, out _)
.Select(edge => edge.Line).ToList();
return corridorEdges;
}

Expand Down

0 comments on commit 0ad201f

Please sign in to comment.