Ejemplo n.º 1
0
 public ILookup <IModel, GeometryIssue> GetIssuesFromRepresentationItems(IEnumerable <IIfcRepresentationItem> representationItems)
 {
     return(representationItems
            .SelectMany(item => GeometryIssue.FromInstanceHandle(this, new XbimInstanceHandle(item)))
            .ToLookup(issue => issue.Model));
 }
Ejemplo n.º 2
0
 public ILookup <IIfcProduct, GeometryIssue> GetIssuesFromProducts(IEnumerable <IIfcProduct> products)
 {
     return(products.Where(product => null != product?.Representation).SelectMany(product => product.Representation.Representations
                                                                                  .SelectMany(r => r.Items
                                                                                              .SelectMany(item => GeometryIssue.FromInstanceHandle(this, new XbimInstanceHandle(item)).Select(issue => (product, issue)))))
            .ToLookup(g => g.product, g => g.issue));
 }