Пример #1
0
 public IXbimShapeGeometryData Mesh(IfcRepresentationItem shape)
 {
     var fbm = shape as IfcFaceBasedSurfaceModel;
     if (fbm != null) return Mesh(fbm);
     var sbm = shape as IfcShellBasedSurfaceModel;
     if (sbm != null) return Mesh(sbm);
     var cfs = shape as IfcConnectedFaceSet;
     if (cfs != null) return Mesh(cfs);
     var fbr = shape as IfcFacetedBrep;
     if (fbr != null) return Mesh(fbr);
     throw new ArgumentException("Unsupported representation type for tessellation, " + shape.GetType().Name);
 }