Skip to content

Commit

Permalink
Merge pull request #1181 from mcneel/1.24
Browse files Browse the repository at this point in the history
Fix on 'Host Shape' when input points overlap corners.
  • Loading branch information
kike-garbo authored Sep 6, 2024
2 parents f96158a + d64a4a7 commit 8ff4bd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RhinoInside.Revit.GH/Types/HostObjects/HostObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ internal bool SetSlabShape(IList<Point3d> points, IList<Line> creases, out IList
using (shape as IDisposable) // ARDB.SlabShapeEditor is IDisposable since Revit 2023
{
shape.ResetSlabShape();
shape.Enable();
host.Document.Regenerate();

var bbox = BoundingBox;
var elevation = GeometryEncoder.ToInternalLength(bbox.Max.Z);

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

0 comments on commit 8ff4bd4

Please sign in to comment.