// Private fix for bug in Geom.Shape private IEnumerable <XbimShapeGeometry> GetGeom(XbimModel model) { using (var shapeGeometryTable = model.GetShapeGeometryTable()) { using (shapeGeometryTable.BeginReadOnlyTransaction()) { IXbimShapeGeometryData shapeGeometry = new XbimShapeGeometry(); if (shapeGeometryTable.TryMoveFirstShapeGeometry(ref shapeGeometry)) { do { yield return((XbimShapeGeometry)shapeGeometry); shapeGeometry = new XbimShapeGeometry(); } while (shapeGeometryTable.TryMoveNextShapeGeometry(ref shapeGeometry)); } } } }