Skip to content

Commit

Permalink
Fix on 'Host Objects' component.
Browse files Browse the repository at this point in the history
When no points are passed in but creases.
  • Loading branch information
kike-garbo committed Jan 2, 2025
1 parent e924af5 commit a2023a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RhinoInside.Revit.GH/Types/HostObjects/HostObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ internal bool SetSlabShape(IList<Point3d> points, IList<Line> creases, out IList
var bbox = BoundingBox;
var elevation = GeometryEncoder.ToInternalLength(bbox.Max.Z);

var vertices = new Dictionary<Point3d, ARDB.SlabShapeVertex>(shape.SlabShapeVertices.Size + points.Count);
var vertices = new Dictionary<Point3d, ARDB.SlabShapeVertex>(shape.SlabShapeVertices.Size + (points?.Count ?? 0) + (creases?.Count ?? 0));
ARDB.SlabShapeVertex AddVertex(Point3d point)
{
var x = GeometryEncoder.ToInternalLength(point.X);
Expand Down

0 comments on commit a2023a7

Please sign in to comment.