Esempio n. 1
0
        public static BH.oM.Analytical.Elements.ISurface SetGeometry(this BH.oM.Analytical.Elements.ISurface anaSurface, BH.oM.Geometry.ISurface geoSurface)
        {
            if (anaSurface == null)
            {
                BH.Engine.Reflection.Compute.RecordError("Cannot set the geometry of a null surface.");
                return(null);
            }

            anaSurface.Extents = geoSurface;
            return(anaSurface);
        }
Esempio n. 2
0
 public static IGeometry Geometry(this BH.oM.Analytical.Elements.ISurface surface)
 {
     return(surface?.Extents);
 }