/***************************************************/ public static PanelPlanar SetInternalElements2D(this PanelPlanar panelPlanar, List <IElement2D> internalElements2D) { PanelPlanar pp = panelPlanar.GetShallowClone() as PanelPlanar; pp.Openings = new List <Opening>(internalElements2D.Cast <Opening>().ToList()); return(pp); }
/***************************************************/ public static PanelPlanar SetOutlineElements1D(this PanelPlanar panelPlanar, List <IElement1D> outlineElements1D) { PanelPlanar pp = panelPlanar.GetShallowClone() as PanelPlanar; pp.ExternalEdges = new List <Edge>(outlineElements1D.Cast <Edge>()); return(pp); }