Skip to content

Commit

Permalink
Minor fixes to the rendering interface
Browse files Browse the repository at this point in the history
  • Loading branch information
isolin committed Oct 24, 2022
1 parent 00f02d4 commit 8f30a83
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions Agro/IrradianceClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ void DoTick(uint timestep, IList<IFormation> formations, IList<IObstacle> obstac
var meshFileFullPath = Path.Combine("..", "agroeco-mts3", meshFileName);
#endif
var ooc = offsetCounter;
using var meshBinaryStream = new MemoryStream();
offsetCounter = ExportAsTriangles(formations, obstacles, ooc, meshBinaryStream
#if EXPORT_OBJ
, objWriter, obji
#endif
);
// using var meshBinaryStream = new MemoryStream();
// offsetCounter = ExportAsTriangles(formations, obstacles, ooc, meshBinaryStream
// #if EXPORT_OBJ
// , objWriter, obji
// #endif
// );
using var primBinaryStream = new MemoryStream();
offsetCounter = ExportAsPrimitives(formations, obstacles, ooc, primBinaryStream);

Expand Down Expand Up @@ -194,8 +194,8 @@ void DoTick(uint timestep, IList<IFormation> formations, IList<IObstacle> obstac
Content = new ByteArrayContent(byteBuffer.Array, 0, byteBuffer.Count)
};
request.Headers.Add("Ti", AgroWorld.GetTime(timestep).ToString("o", CultureInfo.InvariantCulture));
Debug.WriteLine(offsetCounter);
request.Headers.Add("C", offsetCounter.ToString()); //Only use for dummy debug
//Debug.WriteLine(offsetCounter);
//request.Headers.Add("C", offsetCounter.ToString()); //Only use for dummy debug
//request.Headers.Add("Ra", "1024");

var result = Client.SendAsync(request).Result;
Expand Down
2 changes: 1 addition & 1 deletion agroeco-mts3
Submodule agroeco-mts3 updated 1 files
+4 −1 render-server.py

0 comments on commit 8f30a83

Please sign in to comment.