6f03aa8678
* ifc safe * reverted LibraryImport as it would need more testing * IFC app ids
21 lines
458 B
C#
21 lines
458 B
C#
using Speckle.Importers.Ifc.Types;
|
|
using Speckle.InterfaceGenerator;
|
|
using Speckle.Sdk.Models;
|
|
|
|
namespace Speckle.Importers.Ifc.Converters;
|
|
|
|
[GenerateAutoInterface]
|
|
public class GeometryConverter(IMeshConverter meshConverter) : IGeometryConverter
|
|
{
|
|
public IList<Base> Convert(IfcGeometry geometry)
|
|
{
|
|
List<Base> ret = new();
|
|
foreach (var mesh in geometry.GetMeshes())
|
|
{
|
|
ret.Add(meshConverter.Convert(mesh));
|
|
}
|
|
|
|
return ret;
|
|
}
|
|
}
|