Skip to content

Commit

Permalink
Merge pull request #595 from mcneel/AndyPayne/Compute-262
Browse files Browse the repository at this point in the history
adding support for Rectangle3d in GooFromResthopperObject
  • Loading branch information
andyopayne authored Aug 9, 2023
2 parents 20cc865 + 370ee41 commit 3a97e10
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 3a97e10

Please sign in to comment.