diff --git a/Environment_Engine/Modify/SplitPanelByGeometry.cs b/Environment_Engine/Modify/SplitPanelByGeometry.cs deleted file mode 100644 index 6075d6800..000000000 --- a/Environment_Engine/Modify/SplitPanelByGeometry.cs +++ /dev/null @@ -1,65 +0,0 @@ -/* - * This file is part of the Buildings and Habitats object Model (BHoM) - * Copyright (c) 2015 - 2023, the respective contributors. All rights reserved. - * - * Each contributor holds copyright over their respective contributions. - * The project versioning (Git) records all such contribution source information. - * - * - * The BHoM is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3.0 of the License, or - * (at your option) any later version. - * - * The BHoM is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this code. If not, see . - */ - -using BH.oM.Geometry; -using System.Linq; -using System.Collections.Generic; - -using BH.oM.Environment.Elements; - -using BH.Engine.Geometry; - -using BH.oM.Base.Attributes; -using System.ComponentModel; - -using BH.Engine.Base; - -namespace BH.Engine.Environment -{ - public static partial class Modify - { - /***************************************************/ - /**** Public Methods - Curves ****/ - /***************************************************/ - - [Description("Split an Environment Panel by assigning new geometry with the original core data. Returns one panel per geometry provided")] - [Input("panel", "An Environment Panel to split")] - [Input("polylines", "Geometry polylines to split the panel by - one panel per polyline will be returned")] - [Output("panels", "A collection of Environment Panels split into the geometry parts provided")] - public static List SplitPanelByGeometry(this Panel panel, List polylines) - { - List panels = new List(); - - foreach (Polyline p in polylines) - { - Panel pan = panel.ShallowClone(); - pan.ExternalEdges = p.ToEdges(); - panels.Add(pan); - } - - return panels; - } - } -} - - - diff --git a/Environment_Engine/Versioning_63.json b/Environment_Engine/Versioning_63.json new file mode 100644 index 000000000..48b1c75e8 --- /dev/null +++ b/Environment_Engine/Versioning_63.json @@ -0,0 +1,7 @@ +{ + + "MessageForDeleted": { + "BH.Engine.Environment.Modify.SplitPanelByGeometry(BH.oM.Environment.Elements.Panel, System.Collections.Generic.List)": "Method has been removed due to lack of use and confusing UX" + } + +} \ No newline at end of file