Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/master' into hera-queries
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanmaierhofer committed Jan 21, 2021
2 parents 7186d80 + d7486d3 commit da7457e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
19 changes: 10 additions & 9 deletions src/Aardvark.Algodat.Tests/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ internal static void TestE57()
//var sw = new Stopwatch();

CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture;
var filename = @"T:\Vgm\Data\E57\2020-11-13-Walenta\2020452-B-3-5.e57";
var filename = @"T:\Vgm\Data\E57\2020-12-14_Trimble_Scan.e57";
//var fileSizeInBytes = new FileInfo(filename).Length;

var key = Path.GetFileName(filename);
Expand Down Expand Up @@ -162,14 +162,15 @@ internal static void TestE57()
//var cloud = PointCloud.Chunks(chunks, config);

var pcl = store.GetPointSet(key);
var maxCount = pcl.PointCount / 30;
var level = pcl.GetMaxOctreeLevelWithLessThanGivenPointCount(maxCount);
var foo = pcl.QueryPointsInOctreeLevel(level);
var fooCount = 0;
foreach (var chunk in foo)
{
Report.WarnNoPrefix($"{++fooCount}");
}
Report.Line($"{storePath}:{key} : {pcl.PointCount:N0} points");
//var maxCount = pcl.PointCount / 30;
//var level = pcl.GetMaxOctreeLevelWithLessThanGivenPointCount(maxCount);
//var foo = pcl.QueryPointsInOctreeLevel(level);
//var fooCount = 0;
//foreach (var chunk in foo)
//{
// Report.WarnNoPrefix($"{++fooCount}");
//}

//var intensityRange =
// foo
Expand Down
6 changes: 2 additions & 4 deletions src/Aardvark.Data.E57/ASTM_E57.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1223,15 +1223,13 @@ internal static E57Data3D Parse(XElement root, Stream stream)
#region 8.4.3.4
if (data3d.HasCartesianCoordinates && data3d.CartesianBounds == null)
{
#if DEBUG
Console.WriteLine("[Warning][8.4.3.4] CartesianBounds must be defined (if cartesian coordinates are defined).");
#endif
Report.Warn("[8.4.3.4] CartesianBounds must be defined (if cartesian coordinates are defined).");
}
#endregion
#region 8.4.3.5
if (data3d.HasSphericalCoordinates && data3d.SphericalBounds == null)
{
throw new ArgumentException("[8.4.3.5] SphericalBounds must be defined (if spherical coordinates are defined).");
Report.Warn("[8.4.3.5] SphericalBounds must be defined (if spherical coordinates are defined).");
}
#endregion
#region 8.4.3.6
Expand Down
1 change: 0 additions & 1 deletion src/Aardvark.Data.E57/ImportE57.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
using System.Linq;
using System.Threading;
using System.Xml.Linq;
using static System.Console;

namespace Aardvark.Data.Points.Import
{
Expand Down
2 changes: 1 addition & 1 deletion src/Aardvark.Data.Points.Base/Chunk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ public static Chunk ImmutableMerge(IEnumerable<Chunk> chunks)

if (colors != null && positions.Count != colors.Count)
{
colors = new C4b[positions.Count];
Report.Warn("[Chunk-ctor] inconsistent length: pos.length = {0} vs cs.length = {1}", positions.Count, colors.Count);
colors = new C4b[positions.Count];
}

Positions = positions;
Expand Down

0 comments on commit da7457e

Please sign in to comment.