Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment_Engine: Adding cleanPanel method #1274

Merged

Conversation

MajaLindroth
Copy link
Contributor

NOTE: Depends on

Issues addressed by this PR

Closes #1152

Clean panel method added to clean panels from short segments and extra control points.

Test files

Test file

Changelog

Additional comments

Copy link
Contributor

@FraserGreenroyd FraserGreenroyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @MajaLindroth - one small change requested please 😄

[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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sp: minimun should be minimum

Copy link
Contributor

@FraserGreenroyd FraserGreenroyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks @MajaLindroth

@FraserGreenroyd FraserGreenroyd merged commit d4e82c5 into BHoM:master Oct 22, 2019
@FraserGreenroyd FraserGreenroyd deleted the Environment_Engine-#1152-CleanPanel branch October 22, 2019 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Environment_Engine: Fix CleanPanel
2 participants