/***************************************************/ /**** Public Methods ****/ /***************************************************/ public static double Altitude(this BHEI.IBuildingObject buildingElementGeometry) { BHG.BoundingBox panelBoundingBox = BH.Engine.Geometry.Query.IBounds(buildingElementGeometry.ICurve()); double altitude = panelBoundingBox.Min.Z; return(altitude); }
/***************************************************/ /**** Public Methods ****/ /***************************************************/ public static double Azimuth(this BHEI.IBuildingObject buildingElementGeometry, BHG.Vector refVector) { BHG.Polyline pline = new BHG.Polyline { ControlPoints = BH.Engine.Geometry.Query.IControlPoints(buildingElementGeometry.ICurve()) }; double azimuth = Azimuth(pline, refVector); return(azimuth); }
/***************************************************/ /**** Public Methods ****/ /***************************************************/ public static double Tilt(this BHEI.IBuildingObject buildingElementGeometry) { double tilt; BHG.Polyline pline = new BHG.Polyline { ControlPoints = BH.Engine.Geometry.Query.IControlPoints(buildingElementGeometry.ICurve()) }; tilt = Tilt(pline); return(tilt); }