예제 #1
0
        public static double WidthIntoOpening(this FrameEdgeProperty frameEdgeProp)
        {
            if (frameEdgeProp == null)
            {
                return(0);
            }
            Polyline    rectGeo = frameEdgeProp.SimpleGeometry();
            BoundingBox bounds  = rectGeo.Bounds();

            if (bounds == null)
            {
                return(0);
            }
            return(bounds.Max.Y);
        }
예제 #2
0
        public static double Depth(this FrameEdgeProperty frameEdgeProp)
        {
            if (frameEdgeProp == null)
            {
                BH.Engine.Reflection.Compute.RecordError("Cannot query the depth of a null frame edge property.");
                return(0);
            }

            Polyline    rectGeo = frameEdgeProp.SimpleGeometry();
            BoundingBox bounds  = rectGeo.Bounds();

            if (bounds == null)
            {
                return(0);
            }
            return(bounds.Extents().X);
        }