Ejemplo 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);
        }
Ejemplo n.º 2
0
 public static IGeometry Geometry(this BH.oM.Analytical.Elements.ISurface surface)
 {
     return(surface?.Extents);
 }