Skip to content

Commit 7819241

Browse files
committed
fix batch conversion #20
1 parent 35b82cb commit 7819241

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

MainWindow.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
<TextBox x:Name="txtMaxFileCount" HorizontalAlignment="Left" Margin="0" TextWrapping="Wrap" VerticalAlignment="Top" Width="92"/>
4949
</StackPanel>
5050
<CheckBox x:Name="chkRandomize" Content="Randomize" HorizontalAlignment="Left" VerticalAlignment="Top" Foreground="{DynamicResource MainText}" IsChecked="True" ToolTip="Randomize point indexes, to use Dynamic resolution\tDefault is true (Always enabled for v3)"/>
51+
<!--<CheckBox x:Name="chkReadMetaData" Content="Import metadata" HorizontalAlignment="Left" VerticalAlignment="Top" Foreground="{DynamicResource MainText}" IsChecked="True" ToolTip="Reads LAs/LAZ metadata and saves into file"/>-->
5152
</StackPanel>
5253
<Label x:Name="label_Copy6" Content="Global Options" HorizontalAlignment="Left" Margin="20,167,0,0" VerticalAlignment="Top" Foreground="{DynamicResource MainText}" FontWeight="Bold"/>
5354
<StatusBar Margin="0" VerticalAlignment="Bottom">

Writers/PCROOT.cs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ bool IWriter.InitWriter(ImportSettings _importSettings, int _pointCount)
3838
var res = true;
3939

4040
// clear old nodes
41-
nodeBounds.Clear();
4241
nodeX.Clear();
4342
nodeY.Clear();
4443
nodeZ.Clear();
@@ -48,14 +47,6 @@ bool IWriter.InitWriter(ImportSettings _importSettings, int _pointCount)
4847

4948
bsPoints = null;
5049
writerPoints = null;
51-
52-
cloudMinX = float.PositiveInfinity;
53-
cloudMinY = float.PositiveInfinity;
54-
cloudMinZ = float.PositiveInfinity;
55-
cloudMaxX = float.NegativeInfinity;
56-
cloudMaxY = float.NegativeInfinity;
57-
cloudMaxZ = float.NegativeInfinity;
58-
5950
importSettings = _importSettings;
6051

6152
return res;
@@ -430,6 +421,17 @@ void IWriter.Save(int fileIndex)
430421
Console.WriteLine("Error> No tiles found! Try enable -scale (to make your cloud to smaller) Or make -gridsize bigger, or set -limit point count to smaller value");
431422
Console.ForegroundColor = ConsoleColor.White;
432423
}
424+
425+
// cleanup after last file
426+
nodeBounds.Clear();
427+
428+
cloudMinX = float.PositiveInfinity;
429+
cloudMinY = float.PositiveInfinity;
430+
cloudMinZ = float.PositiveInfinity;
431+
cloudMaxX = float.NegativeInfinity;
432+
cloudMaxY = float.NegativeInfinity;
433+
cloudMaxZ = float.NegativeInfinity;
434+
433435
}
434436
} // Save()
435437

0 commit comments

Comments
 (0)