Files
huanld 1686f08040
Release pipeline / Get version (push) Has been cancelled
Release pipeline / Get Chart Name (push) Has been cancelled
Release pipeline / tests (push) Has been cancelled
Release pipeline / builds (push) Has been cancelled
Release pipeline / builds-ghcr (push) Has been cancelled
Release pipeline / test-deployments (push) Has been cancelled
Release pipeline / deploy (push) Has been cancelled
Release pipeline / Helm chart oci (push) Has been cancelled
Release pipeline / npm (push) Has been cancelled
Release pipeline / snyk (push) Has been cancelled
feat: commit IFC-toolkit and engine_web-ifc source code
2026-04-16 07:47:58 +07:00

29 lines
844 B
C#

namespace Ara3D.IfcLoader
{
public class IfcGeometry
{
public readonly IntPtr ApiPtr;
public readonly IntPtr GeometryPtr;
public readonly int NumMeshes;
public readonly uint Id;
public IfcGeometry(IntPtr apiPtr, IntPtr geometryPtr)
{
ApiPtr = apiPtr;
GeometryPtr = geometryPtr;
Id = WebIfcDll.GetMeshId(ApiPtr, GeometryPtr);
NumMeshes = WebIfcDll.GetNumMeshes(ApiPtr, GeometryPtr);
}
public IfcMesh GetMesh(int i)
=> new IfcMesh(ApiPtr, WebIfcDll.GetMesh(ApiPtr, GeometryPtr, i));
public int GetNumMeshes()
=> NumMeshes;
public IEnumerable<IfcMesh> GetMeshes()
{
for (int i = 0; i < NumMeshes; ++i)
yield return GetMesh(i);
}
}
}