From 8f30a83583bcd6da428225a8908f40081e5c385f Mon Sep 17 00:00:00 2001 From: isolin Date: Mon, 24 Oct 2022 17:38:30 +0000 Subject: [PATCH] Minor fixes to the rendering interface --- Agro/IrradianceClient.cs | 16 ++++++++-------- agroeco-mts3 | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Agro/IrradianceClient.cs b/Agro/IrradianceClient.cs index e8daee4..f91ad71 100644 --- a/Agro/IrradianceClient.cs +++ b/Agro/IrradianceClient.cs @@ -161,12 +161,12 @@ void DoTick(uint timestep, IList formations, IList 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); @@ -194,8 +194,8 @@ void DoTick(uint timestep, IList formations, IList 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; diff --git a/agroeco-mts3 b/agroeco-mts3 index 33176aa..aff4544 160000 --- a/agroeco-mts3 +++ b/agroeco-mts3 @@ -1 +1 @@ -Subproject commit 33176aabf59d742c45e31f73fe271948680e6c93 +Subproject commit aff4544b19d3c0c9cbd7ae03fc6f0bfed4bca30f