Open PTS Ascii default as grey (also Command Line)
Posted: Wed Dec 20, 2023 8:02 am
Hi,
I have asked question by email about how to open some PTS Ascii files that I got with Grey option.
In GUI it is available to select when open. Problem was how set up Command line for this.
Admin answered to add header to files like this:
//X Y Z Grey
And it works flawless. Adding header is not a problem and can be done with easy script to many files.
My PTS by default is like:
16456
-0.945262 -1.44468 -1.53767 192
-1.009727 -1.5313 -1.533651 190
-0.929352 -1.479882 -1.536824 194
-0.933544 -1.495135 -1.535955 192
....
After add header:
//X Y Z Grey
16456
-0.945262 -1.44468 -1.53767 192
-1.009727 -1.5313 -1.533651 190
-0.929352 -1.479882 -1.536824 194
-0.933544 -1.495135 -1.535955 192
...
* SKIP 2 lines then is needed when open from Command Line.
CMD line example:
CloudCompare -O -SKIP 2 -GLOBAL_SHIFT AUTO C:\<filepath>\File1.pts ... then Your process and export commands
I have asked question by email about how to open some PTS Ascii files that I got with Grey option.
In GUI it is available to select when open. Problem was how set up Command line for this.
Admin answered to add header to files like this:
//X Y Z Grey
And it works flawless. Adding header is not a problem and can be done with easy script to many files.
My PTS by default is like:
16456
-0.945262 -1.44468 -1.53767 192
-1.009727 -1.5313 -1.533651 190
-0.929352 -1.479882 -1.536824 194
-0.933544 -1.495135 -1.535955 192
....
After add header:
//X Y Z Grey
16456
-0.945262 -1.44468 -1.53767 192
-1.009727 -1.5313 -1.533651 190
-0.929352 -1.479882 -1.536824 194
-0.933544 -1.495135 -1.535955 192
...
* SKIP 2 lines then is needed when open from Command Line.
CMD line example:
CloudCompare -O -SKIP 2 -GLOBAL_SHIFT AUTO C:\<filepath>\File1.pts ... then Your process and export commands