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); }
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); }