Files
speckle-server/scratch/IFC-toolkit/Ara3D.IfcLoader/IfcMesh.cs
T
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
1004 B
C#

namespace Ara3D.IfcLoader
{
public class IfcMesh
{
public readonly uint Id;
public readonly IntPtr ApiPtr;
public readonly IntPtr MeshPtr;
public readonly int NumVertices;
public readonly int NumIndices;
public readonly IntPtr Vertices;
public readonly IntPtr Indices;
public readonly IntPtr Color;
public readonly IntPtr Transform;
public IfcMesh(IntPtr apiPtr, IntPtr meshPtr)
{
ApiPtr = apiPtr;
MeshPtr = meshPtr;
Id = WebIfcDll.GetMeshId(ApiPtr, MeshPtr);
NumIndices = WebIfcDll.GetNumIndices(ApiPtr, MeshPtr);
NumVertices = WebIfcDll.GetNumVertices(ApiPtr, MeshPtr);
Vertices = WebIfcDll.GetVertices(ApiPtr, MeshPtr);
Indices = WebIfcDll.GetIndices(ApiPtr, MeshPtr);
Color = WebIfcDll.GetColor(ApiPtr, MeshPtr);
Transform = WebIfcDll.GetTransform(ApiPtr, MeshPtr);
}
}
}