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