Last active
March 8, 2022 00:36
-
-
Save maz-1/602a2219b16ce07647226e4a67e0a8d0 to your computer and use it in GitHub Desktop.
batch-export.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
SET CLOUDCOMPARE=C:\Program Files\CloudCompare\CloudCompare.exe | |
SET SRC_EXT=las | |
SET DST_EXT=e57 | |
SET DST_FMT=E57 | |
rem SET GLOBAL_SHIFT=AUTO | |
SET GLOBAL_SHIFT=-2677990.00 -1254460.00 -441.00 | |
mkdir output 2> NUL | |
for %%f in (*.%SRC_EXT%) do ( | |
"%CLOUDCOMPARE%" -SILENT -O -GLOBAL_SHIFT %GLOBAL_SHIFT% "%%~nf.%SRC_EXT%" -C_EXPORT_FMT %DST_FMT% -SAVE_CLOUDS FILE out.%DST_EXT% | |
rem del /Q "%%~nf.%SRC_EXT%" | |
move out.e57 "output\%%~nf.%DST_EXT%" | |
) | |
rem pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment