Skip to content

Commit

Permalink
adding support for Rectangle3d in GooFromResthopperObject
Browse files Browse the repository at this point in the history
  • Loading branch information
andyopayne committed Aug 9, 2023
1 parent 20cc865 commit 370ee41
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/hops/RemoteDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,12 @@ static IGH_Goo GooFromResthopperObject(ResthopperObject obj)
obj.ResolvedData = lineResult;
return lineResult;
}
case "Rhino.Geometry.Rectangle3d":
{
var rectangleResult = new Grasshopper.Kernel.Types.GH_Rectangle(JsonConvert.DeserializeObject<Rectangle3d>(data));
obj.ResolvedData = rectangleResult;
return rectangleResult;
}
case "Rhino.Geometry.Plane":
{
var planeResult = new Grasshopper.Kernel.Types.GH_Plane(JsonConvert.DeserializeObject<Plane>(data));
Expand Down

0 comments on commit 370ee41

Please sign in to comment.