@@ -30,7 +30,7 @@ namespace PointCloudConverter
30
30
{
31
31
public partial class MainWindow : Window
32
32
{
33
- static readonly string version = "18.05 .2025" ;
33
+ static readonly string version = "27.08 .2025" ;
34
34
static readonly string appname = "PointCloud Converter - " + version ;
35
35
static readonly string rootFolder = AppDomain . CurrentDomain . BaseDirectory ;
36
36
@@ -291,7 +291,7 @@ private static async Task ProcessAllFiles(object workerParamsObject)
291
291
292
292
if ( ( importSettings . useAutoOffset == true && importSettings . importMetadataOnly == false ) || ( ( importSettings . importIntensity == true || importSettings . importClassification == true ) && importSettings . importRGB == true && importSettings . packColors == true && importSettings . importMetadataOnly == false ) )
293
293
{
294
- int iterations = importSettings . offsetMode == "min" ? importSettings . maxFiles : 1 ; // 1 for legacy mode
294
+ int iterations = importSettings . offsetMode == "min" ? importSettings . maxFiles : 1 ; // 1 for legacy mode (first cloud only)
295
295
296
296
for ( int i = 0 , len = iterations ; i < len ; i ++ )
297
297
{
@@ -604,8 +604,8 @@ static void StartProgressTimer()
604
604
public class ProgressInfo
605
605
{
606
606
public int Index { get ; internal set ; } // Index of the ProgressBar in the UI
607
- public int CurrentValue { get ; internal set ; } // Current progress value
608
- public int MaxValue { get ; internal set ; } // Maximum value for the progress
607
+ public long CurrentValue { get ; internal set ; } // Current progress value
608
+ public long MaxValue { get ; internal set ; } // Maximum value for the progress
609
609
public string FilePath { get ; internal set ; }
610
610
public bool UseJsonLog { get ; internal set ; }
611
611
}
@@ -675,8 +675,8 @@ static void ProgressTick(object sender, EventArgs e)
675
675
foreach ( var progressInfo in progressInfos )
676
676
{
677
677
int index = progressInfo . Index ;
678
- int currentValue = progressInfo . CurrentValue ;
679
- int maxValue = progressInfo . MaxValue ;
678
+ long currentValue = progressInfo . CurrentValue ;
679
+ long maxValue = progressInfo . MaxValue ;
680
680
681
681
// Access ProgressBar directly from the StackPanel.Children using its index
682
682
if ( index >= 0 && index < mainWindowStatic . ProgressBarsContainer . Children . Count )
@@ -783,8 +783,8 @@ static bool ParseFile(ImportSettings importSettings, int fileIndex, int? taskId,
783
783
784
784
if ( importSettings . importMetadataOnly == false )
785
785
{
786
- int fullPointCount = taskReader . GetPointCount ( ) ;
787
- int pointCount = fullPointCount ;
786
+ long fullPointCount = taskReader . GetPointCount ( ) ;
787
+ long pointCount = fullPointCount ;
788
788
789
789
// show stats for decimations
790
790
if ( importSettings . skipPoints == true )
@@ -874,14 +874,14 @@ static bool ParseFile(ImportSettings importSettings, int fileIndex, int? taskId,
874
874
875
875
Log . Write ( jsonString , LogEvent . File ) ;
876
876
877
- int checkCancelEvery = fullPointCount / 128 ;
877
+ long checkCancelEvery = fullPointCount / 128 ;
878
878
879
879
// detect is 0-255 or 0-65535 range
880
880
bool isCustomIntensityRange = false ;
881
881
882
882
// Loop all points
883
883
// FIXME: would be nicer, if use different STEP value for skip, keep and limit..(to collect points all over the file, not just start)
884
- int maxPointIterations = importSettings . useLimit ? pointCount : fullPointCount ;
884
+ long maxPointIterations = importSettings . useLimit ? pointCount : fullPointCount ;
885
885
for ( int i = 0 ; i < maxPointIterations ; i ++ )
886
886
{
887
887
// check for cancel every 1% of points
0 commit comments