I have some questions concerning the naming conventions of imported and exported files.
Concerning the import of multiple meshes
I have a folder with multiple meshes (.ply files) and use a command line script to regroup them into one single .bin file. The .ply files have all different names, but once regrouped into a single .bin file, all meshes are simply called "Mesh" with no other way to distinguish them in the DB Tree. Is it possible to import the meshes while keeping the filenames referenced?
I used following code to import the ply files
Code: Select all
set Directory=[DirectoryToFiles]
set PathCC=[PathToCloudCompare]
setlocal enabledelayedexpansion
set Open_Ply_Files=
set "Folder_Ply_Files=%Directory%Ply_Files\*.ply"
for %%f in ("%Folder_Ply_Files%") do (
if not defined Open_Ply_Files (
set "Open_Ply_Files=-O %%f"
) else (
set "Open_Ply_Files=!Open_Ply_Files! -O %%f"
)
)
cd /D %PathCC%
CloudCompare -SILENT -AUTO_SAVE OFF -NO_TIMESTAMP %Open_Ply_Files% -SAVE_MESHES ALL_AT_ONCE FILE "%Directory%All_Scans_Meshes.bin"
I use the command line to open a .bin file with multiple clouds and export them one by one as .asc files.
The original .bin file has following DB Tree structure To export the files, I provide filenames, creating a list of names.
Code: Select all
setlocal enabledelayedexpansion
set NumberOfClouds=14
set /a "ScanNumber=%NumberOfClouds%-1"
set Names_List=
for /L %%i in (%ScanNumber%,-1,0) do (
if %%i LSS 10 (
if not defined Names_List (
set "Names_List=%Directory%S0%%i"
) else (
set "Names_List=!Names_List! %Directory%S0%%i"
)
) else (
if not defined Names_List (
set "Names_List=%Directory%S%%i"
) else (
set "Names_List=!Names_List! %Directory%S%%i"
)
)
)
set Names_List="%Names_List%"
Code: Select all
cd /D %PathCC%
CloudCompare -SILENT -AUTO_SAVE OFF -NO_TIMESTAMP -O %FILE_PATH% -C_EXPORT_FMT ASC -SAVE_CLOUDS FILE %Names_List%
Is it possible, instead of having to create an exhaustive list of names, to have the name of the specific cloud (eg. Scan13) used as name for the exported file?
If not, is there an option to omit the automatic addition of the numerical suffix if I provide an exhaustive list of filenames?
As a sidenote, I noticed that the file extension should not be mentioned in the Names_List since the export automatically adds a numerical suffix, and if the file extension is already given, it adds the suffix after the extension (eg. S00.asc_13).
Thank you in advance for any help or insight :)