From a2023a72bc76c0cb63d141efba2faa148bce0206 Mon Sep 17 00:00:00 2001 From: kike-garbo Date: Thu, 2 Jan 2025 21:05:04 +0100 Subject: [PATCH] Fix on 'Host Objects' component. When no points are passed in but creases. --- src/RhinoInside.Revit.GH/Types/HostObjects/HostObject.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RhinoInside.Revit.GH/Types/HostObjects/HostObject.cs b/src/RhinoInside.Revit.GH/Types/HostObjects/HostObject.cs index 3b2d4e055..c539ff6c2 100644 --- a/src/RhinoInside.Revit.GH/Types/HostObjects/HostObject.cs +++ b/src/RhinoInside.Revit.GH/Types/HostObjects/HostObject.cs @@ -97,7 +97,7 @@ internal bool SetSlabShape(IList points, IList creases, out IList var bbox = BoundingBox; var elevation = GeometryEncoder.ToInternalLength(bbox.Max.Z); - var vertices = new Dictionary(shape.SlabShapeVertices.Size + points.Count); + var vertices = new Dictionary(shape.SlabShapeVertices.Size + (points?.Count ?? 0) + (creases?.Count ?? 0)); ARDB.SlabShapeVertex AddVertex(Point3d point) { var x = GeometryEncoder.ToInternalLength(point.X);