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

BHoM_Engine: Remove deprecated methods #3246

Merged
merged 7 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 0 additions & 57 deletions Architecture_Engine/Query/NewElement1D.cs

This file was deleted.

5 changes: 5 additions & 0 deletions Architecture_Engine/Versioning_71.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"MessageForDeleted": {
"BH.Engine.Architecture.Query.NewElement1D(BH.oM.Architecture.Elements.Room, BH.oM.Geometry.ICurve)": "NewElement methods were refactored in BHoM 3.2 with these methods marked for deletion, and have now been removed."
}
}
104 changes: 0 additions & 104 deletions Diffing_Engine/Query/ListModifiedProperties.cs

This file was deleted.

5 changes: 5 additions & 0 deletions Diffing_Engine/Versioning_71.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"MessageForDeleted": {
"BH.Engine.Diffing.Query.ListModifiedProperties(System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.Dictionary<System.String, System.Tuple<System.Object, System.Object>>>, System.Collections.Generic.List<System.String>)": "This method has been deprecated since 5.0 due to the new Diffing object structure."
}
}
79 changes: 0 additions & 79 deletions Environment_Engine/Query/CleanSpace.cs

This file was deleted.

10 changes: 0 additions & 10 deletions Environment_Engine/Query/FilterPanels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
/**** Public Methods ****/
/***************************************************/

[Description("Returns a collection of Environment Panels that match the given element ID")]

Check warning on line 49 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L49

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("panels", "A collection of Environment Panels")]

Check warning on line 50 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L50

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("elementID", "The Element ID to filter by")]

Check warning on line 51 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L51

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Output("panels", "A collection of Environment Panel objects that match the element ID")]

Check warning on line 52 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L52

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
public static List<Panel> FilterPanelsByElementID(this List<Panel> panels, string elementID)
{
List<IEnvironmentObject> envObjects = new List<IEnvironmentObject>();
Expand All @@ -67,20 +67,20 @@
return rtnPanels;
}

[Description("Returns a collection of Environment Panels that match the given geometry")]

Check warning on line 70 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L70

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("panels", "A collection of Environment Panels")]

Check warning on line 71 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L71

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("searchGeometry", "The BHoM Geometry ICurve representation to search by")]

Check warning on line 72 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L72

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Output("panels", "A collection of Environment Panel where the external edges match the given search geometry")]

Check warning on line 73 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L73

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
public static List<Panel> FilterPanelsByGeometry(this List<Panel> panels, ICurve searchGeometry)
{
List<Point> searchPoints = searchGeometry.ICollapseToPolyline(BH.oM.Geometry.Tolerance.Angle).DiscontinuityPoints();
return panels.Where(x => x.Polyline().DiscontinuityPoints().PointsMatch(searchPoints)).ToList();
}

[Description("Returns a collection of Environment Panels that sit entirely on a given levels elevation")]

Check warning on line 80 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L80

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("panels", "A collection of Environment Panels to filter")]

Check warning on line 81 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L81

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("searchLevel", "The Setting Out Level to search by")]

Check warning on line 82 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L82

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Output("panels", "A collection of Environment Panels which match the given level")]

Check warning on line 83 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L83

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
public static List<Panel> FilterPanelsByLevel(this List<Panel> panels, Level searchLevel)
{
if (panels == null)
Expand All @@ -98,19 +98,19 @@
return panels.FilterPanelsByLevel(searchLevel.Elevation);
}

[Description("Returns a collection of Environment Panels that sit entirely on a given levels elevation")]

Check warning on line 101 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L101

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("panels", "A collection of Environment Panels to filter")]

Check warning on line 102 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L102

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("searchLevel", "The level to search by")]

Check warning on line 103 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L103

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Output("panels", "A collection of Environment Panels which match the given level")]

Check warning on line 104 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L104

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
public static List<Panel> FilterPanelsByLevel(this List<Panel> panels, double searchLevel)
{
return panels.Where(x => x.MinimumLevel() == searchLevel && x.MaximumLevel() == searchLevel).ToList();
}

[Description("Returns a collection of Environment Panels where the maximum level of the panel matches the elevation of the given search level")]

Check warning on line 110 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L110

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("panels", "A collection of Environment Panels to filter")]

Check warning on line 111 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L111

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("searchLevel", "The Setting Level to search by")]

Check warning on line 112 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L112

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Output("panels", "A collection of Environment Panels where the maximum level meets the search level")]

Check warning on line 113 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L113

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
public static List<Panel> FilterPanelsByMaximumLevel(this List<Panel> panels, Level searchLevel)
{
if (panels == null)
Expand All @@ -128,19 +128,19 @@
return panels.FilterPanelsByMaximumLevel(searchLevel.Elevation);
}

[Description("Returns a collection of Environment Panels where the maximum level of the panel matches the elevation of the given search level")]

Check warning on line 131 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L131

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("panels", "A collection of Environment Panels to filter")]

Check warning on line 132 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L132

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("searchLevel", "The level to search by")]

Check warning on line 133 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L133

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Output("panels", "A collection of Environment Panels where the maximum level meets the search level")]

Check warning on line 134 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L134

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
public static List<Panel> FilterPanelsByMaximumLevel(this List<Panel> panels, double searchLevel)
{
return panels.Where(x => x.MaximumLevel() == searchLevel).ToList();
}

[Description("Returns a collection of Environment Panels where the minimum level of the panel matches the elevation of the given search level")]

Check warning on line 140 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L140

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("panels", "A collection of Environment Panels to filter")]

Check warning on line 141 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L141

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("searchLevel", "The Setting Out Level to search by")]

Check warning on line 142 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L142

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Output("panels", "A collection of Environment Panels where the minimum level meets the search level")]

Check warning on line 143 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L143

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
public static List<Panel> FilterPanelsByMinimumLevel(this List<Panel> panels, Level searchLevel)
{
if (panels == null)
Expand All @@ -158,58 +158,48 @@
return panels.FilterPanelsByMinimumLevel(searchLevel.Elevation);
}

[Description("Returns a collection of Environment Panels where the minimum level of the panel matches the elevation of the given search level")]

Check warning on line 161 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L161

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("panels", "A collection of Environment Panels to filter")]

Check warning on line 162 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L162

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("searchLevel", "The level to search by")]

Check warning on line 163 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L163

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Output("panels", "A collection of Environment Panels where the minimum level meets the search level")]

Check warning on line 164 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L164

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
public static List<Panel> FilterPanelsByMinimumLevel(this List<Panel> panels, double searchLevel)
{
return panels.Where(x => x.MinimumLevel() == searchLevel).ToList();
}

[Description("Returns a collection of Environment Panels that are match the given name")]

Check warning on line 170 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L170

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("panels", "A collection of Environment Panels")]

Check warning on line 171 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L171

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("name", "The name of the panel to filter by")]

Check warning on line 172 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L172

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Output("panels", "A collection of Environment Panel that match the given name")]

Check warning on line 173 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L173

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
public static List<Panel> FilterPanelsByName(this List<Panel> panels, string name)
{
return panels.Where(x => x.Name == name).ToList();
}

[Description("Returns a collection of Environment Panels that are match the given tilt")]

Check warning on line 179 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L179

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("panels", "A collection of Environment Panels")]

Check warning on line 180 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L180

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("tilt", "The tilt to filter by")]

Check warning on line 181 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L181

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Output("panels", "A collection of Environment Panel that match the given tilt")]

Check warning on line 182 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L182

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
public static List<Panel> FilterPanelsByTilt(this List<Panel> panels, double tilt)
{
return panels.Where(x => x.Tilt() == tilt).ToList();
}

[Description("Returns a collection of Environment Panels that are tilted between the given tilt range")]

Check warning on line 188 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L188

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("panels", "A collection of Environment Panels")]

Check warning on line 189 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L189

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("minTilt", "The minimum tilt to filter by")]

Check warning on line 190 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L190

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("maxTilt", "The maximum tilt to filter by")]

Check warning on line 191 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L191

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Output("panels", "A collection of Environment Panel that are between the given tilt range")]

Check warning on line 192 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L192

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
public static List<Panel> FilterPanelsByTiltRange(this List<Panel> panels, double minTilt, double maxTilt)
{
return panels.Where(x => x.Tilt() >= minTilt && x.Tilt() <= maxTilt).ToList();
}

[Description("Returns a collection of Environment Panels that DO NOT match a given Panel Type")]
[Input("panels", "A collection of Environment Panels")]
[Input("type", "A Panel Type to filter by from the Panel Type enum")]
[Output("panels", "A collection of Environment Panel that DO NOT match the given type")]
[ToBeRemoved("3.3", "Replaced by FilterPanelsByType which provides the panels which match and don't match a given type")]
public static List<Panel> FilterPanelsNotByType(this List<Panel> panels, PanelType type)
{
return panels.Where(x => x.Type != type).ToList();
}

[Description("Returns a collection of Environment Panels that match the provided types as the first output, and the panels which don't match the provided types as the second output")]

Check warning on line 198 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L198

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("panels", "A collection of Environment Panels")]

Check warning on line 199 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L199

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("types", "One or more Panel Types to filter by from the Panel Type enum")]

Check warning on line 200 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L200

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[MultiOutput(0, "panelsMatchingType", "A collection of Environment Panels that match the provided types")]

Check warning on line 201 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L201

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[MultiOutput(1, "panelsNotMatchingType", "A collection of Environment Panel that DO NOT match the provided types")]

Check warning on line 202 in Environment_Engine/Query/FilterPanels.cs

View check run for this annotation

BHoMBot-CI / documentation-compliance

Environment_Engine/Query/FilterPanels.cs#L202

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[PreviousInputNames("types", "type")]
public static Output<List<Panel>, List<Panel>> FilterPanelsByType(this List<Panel> panels, List<PanelType> types)
{
Expand Down
4 changes: 3 additions & 1 deletion Environment_Engine/Versioning_71.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"BH.Engine.Environment.Query.NewElement1D(BH.oM.Environment.Elements.Space, BH.oM.Geometry.ICurve)": "NewElement methods were refactored in BHoM 3.2 with these methods marked for deletion, and have now been removed.",
"BH.Engine.Environment.Create.NewElement1D(BH.oM.Environment.Elements.Opening, BH.oM.Geometry.ICurve)": "NewElement methods were refactored in BHoM 3.2 with these methods marked for deletion, and have now been removed.",
"BH.Engine.Environment.Create.NewElement1D(BH.oM.Environment.Elements.Panel, BH.oM.Geometry.ICurve)": "NewElement methods were refactored in BHoM 3.2 with these methods marked for deletion, and have now been removed.",
"BH.Engine.Environment.Create.NewInternalElement2D(BH.oM.Environment.Elements.Panel)": "NewElement methods were refactored in BHoM 3.2 with these methods marked for deletion, and have now been removed."
"BH.Engine.Environment.Create.NewInternalElement2D(BH.oM.Environment.Elements.Panel)": "NewElement methods were refactored in BHoM 3.2 with these methods marked for deletion, and have now been removed.",
"BH.Engine.Environment.Query.CleanSpace(System.Collections.Generic.List<BH.oM.Environment.Elements.Panel>)": "This method has been deprecated since 3.3, as it provided no meaningful output as the connected space attribute was not updated.",
"BH.Engine.Environment.Query.FilterPanelsNotByType(System.Collections.Generic.List<BH.oM.Environment.Elements.Panel>, BH.oM.Environment.Elements.PanelType)": "This method has been deprecated since 3.3, as its functionality has been captured by FilterPanelsByType which now outputs matched and unmatched panels."
}
}
13 changes: 0 additions & 13 deletions Geometry_Engine/Query/Centre.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,6 @@ public static Point Centre(this Arc arc, double tolerance = Tolerance.Distance)
return arc.CoordinateSystem.Origin;
}

/***************************************************/

[ToBeRemoved("4.1", "To be removed as it is generally incorrect. Advising using Centroid instead.")]
public static Point Centre(this Polyline polyline, double tolerance = Tolerance.Distance)
{
//TODO: this is an average point, not centroid - should be distinguished

if (!polyline.IsClosed(tolerance))
return polyline.ControlPoints.Average(); // TODO: not true for a self-intersecting polyline?
else
return polyline.ControlPoints.GetRange(0, polyline.ControlPoints.Count - 1).Average();
}

/***************************************************/
/**** Surfaces ****/
/***************************************************/
Expand Down
48 changes: 0 additions & 48 deletions Geometry_Engine/Query/Radius.cs

This file was deleted.

6 changes: 6 additions & 0 deletions Geometry_Engine/Versioning_71.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"MessageForDeleted": {
"BH.Engine.Geometry.Query.Centre(BH.oM.Geometry.Polyline, System.Double)": "This method has been deprecated since 4.1, as the method used was incorrect. If this method was used, please replace with the Centroid method instead",
"BH.Engine.Geometry.Query.Radius(BH.oM.Geometry.Arc)": "This method has been deprecated since 4.1, as Radius is now a public property of the Arc class"
}
}
2 changes: 1 addition & 1 deletion Structure_Engine/Convert/FEMeshToPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static List<Panel> FEMeshToPanel(this FEMesh feMesh)
Panel panel = new Panel();
foreach (Polyline polyline in polylines)
{
panel = Create.Panel(polyline, null, null, feMesh.Name);
panel = Create.Panel(polyline, name:feMesh.Name);
if (feMesh.Property != null)
{
panel.Property = feMesh.Property;
Expand Down
22 changes: 0 additions & 22 deletions Structure_Engine/Create/Elements/Panel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,28 +151,6 @@ public static Panel Panel(PlanarSurface surface, ISurfaceProperty property = nul
}

/***************************************************/
/**** Public Methods - ToBeRemoved ****/
/***************************************************/

[ToBeRemoved("3.1", "Method that use a mixture of geometry and objects between edges and openings removed.")]
public static Panel Panel(List<Edge> externalEdges, List<ICurve> openings = null, ISurfaceProperty property = null, string name = "")
{
List<Opening> pOpenings = openings != null ? openings.Select(o => Create.Opening(o)).ToList() : new List<Opening>();
return Panel(externalEdges, pOpenings, property, null, name);
}

/***************************************************/

[ToBeRemoved("3.1", "Method that use a mixture of geometry and objects between edges and openings removed.")]
public static Panel Panel(ICurve outline, List<Opening> openings = null, ISurfaceProperty property = null, string name = "")
{
if (!outline.IIsClosed()) return null;
List<Edge> externalEdges = outline.ISubParts().Select(x => new Edge { Curve = x }).ToList();

return Panel(externalEdges, openings, property, null, name);
}

/***************************************************/

}
}
Expand Down
Loading