Skip to content

Commit

Permalink
#1152 requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MajaLindroth authored and Fraser Greenroyd committed Oct 22, 2019
1 parent ab92e5c commit d4e82c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Environment_Engine/Modify/CleanPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ public static partial class Modify
[Input("angleTolerance", "The tolerance of the angle that defines a straight line. Default is set to the value defined by BH.oM.Geometry.Tolerance.Angle")]
[Input("minimumSegmentLength", "The length of the smallest allowed segment. Segments smaller than this will be removed. Default is set to the value defined by BH.oM.Geometry.Tolerance.Distance")]
[Output("cleanedPanels", "A list of panels that has been cleaned")]
public static List<Panel> CleanPanel(this List<Panel> panels, double angleTolerance = Tolerance.Angle, double minimunSegmentLength = Tolerance.Distance)
public static List<Panel> CleanPanel(this List<Panel> panels, double angleTolerance = Tolerance.Angle, double minimumSegmentLength = Tolerance.Distance)
{
List<Panel> clonedPanels = new List<Panel>(panels.Select(x => x.DeepClone<Panel>()).ToList());

foreach (Panel p in clonedPanels)
p.ExternalEdges = p.Polyline().CleanPolyline(angleTolerance, minimunSegmentLength).ToEdges();
p.ExternalEdges = p.Polyline().CleanPolyline(angleTolerance, minimumSegmentLength).ToEdges();
return clonedPanels;
}
}
Expand Down

0 comments on commit d4e82c5

Please sign in to comment.