示例#1
0
        /***************************************************/
        /**** 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);
        }
示例#2
0
        /***************************************************/
        /**** 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);
        }
示例#3
0
        /***************************************************/
        /**** 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);
        }