Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

Fix topology count compile errors in kernel endpoints

Yuechen Lif3c1c50c744b
diff --git a/Aetheris.Server/Api/KernelEndpoints.cs b/Aetheris.Server/Api/KernelEndpoints.cs
index 2049c295..d1f7cf14 100644
--- a/Aetheris.Server/Api/KernelEndpoints.cs
+++ b/Aetheris.Server/Api/KernelEndpoints.cs
@@ -230,9 +230,9 @@ public static class KernelEndpoints
return new BodyCreatedResponseDto(
document.Id,
bodyId,
- body.Topology.Faces.Count,
- body.Topology.Edges.Count,
- body.Topology.Vertices.Count);
+ body.Topology.Faces.Count(),
+ body.Topology.Edges.Count(),
+ body.Topology.Vertices.Count());
}
private static bool TryCreateFrame(Point3Dto originDto, Vector3Dto normalDto, Vector3Dto uAxisDto, out ExtrudeFrame3D frame, out IResult error)