Skip to content

Commit 0a551d6

Browse files
committed
fix #25 (randomize method was not using same seed for colors?), #BUILD
1 parent 823ffdc commit 0a551d6

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

MainWindow.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
<TextBox x:Name="txtMaxFileCount" HorizontalAlignment="Left" Margin="0" TextWrapping="Wrap" VerticalAlignment="Top" Width="92"/>
5555
</StackPanel>
5656
<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)"/>
57+
<!--<CheckBox x:Name="chkOpenOutput" Content="Open output folder" HorizontalAlignment="Left" VerticalAlignment="Top" Foreground="{DynamicResource MainText}" IsChecked="False" ToolTip="Open Explorer to Output folder after finished processing"/>-->
5758
<!--<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"/>-->
5859
</StackPanel>
5960
<Label x:Name="label_Copy6" Content="Global Options" HorizontalAlignment="Left" Margin="20,167,0,0" VerticalAlignment="Top" Foreground="{DynamicResource MainText}" FontWeight="Bold"/>

MainWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace PointCloudConverter
1818
{
1919
public partial class MainWindow : Window
2020
{
21-
static string appname = "PointCloud Converter - 25.09.2023";
21+
static string appname = "PointCloud Converter - 22.11.2023";
2222
static readonly string rootFolder = AppDomain.CurrentDomain.BaseDirectory;
2323

2424
// allow console output from WPF application https://stackoverflow.com/a/7559336/5452781

Writers/UCPC.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ void IWriter.Randomize()
170170
Marshal.Copy(tempBytes, 0, pV, pointCount * 4 * 3);
171171
vectorPointer.Free();
172172

173+
Tools.ResetRandom();
173174
Tools.ShuffleXYZ(Tools.rnd, ref tempFloats);
174175
// need to reset random to use same seed
175176
Tools.ResetRandom();

0 commit comments

Comments
 (0)