ae4b1b0ab5
Send IfcProjects, IfcSites, IfcBuildings, and IfcStoreys as Collections
21 lines
464 B
C#
21 lines
464 B
C#
using Speckle.Importers.Ifc.Types;
|
|
using Speckle.InterfaceGenerator;
|
|
using Speckle.Sdk.Models;
|
|
|
|
namespace Speckle.Importers.Ifc.Converters;
|
|
|
|
[GenerateAutoInterface]
|
|
public sealed class GeometryConverter(IMeshConverter meshConverter) : IGeometryConverter
|
|
{
|
|
public List<Base> Convert(IfcGeometry geometry)
|
|
{
|
|
List<Base> ret = new();
|
|
foreach (var mesh in geometry.GetMeshes())
|
|
{
|
|
ret.Add(meshConverter.Convert(mesh));
|
|
}
|
|
|
|
return ret;
|
|
}
|
|
}
|