Hi Daniel,
It's now common for PTX files to include normals. Leica Register360 now has this option for exported PTX files. They have 10 columns in total: X Y Z int R G B Nx Ny Nz. Any chance you can add support for this extended PTX format?
PTX files with normals
Re: PTX files with normals
Is it plain ASCII file?
if so, rename extension to whatever ASCII format CC support and the wizard form will let you choose what gives what based on any number of columns
if so, rename extension to whatever ASCII format CC support and the wizard form will let you choose what gives what based on any number of columns
Re: PTX files with normals
Yep, good trick for now. But we should definitely add this to the PTX I/O filter as well.
Daniel, CloudCompare admin
Re: PTX files with normals
Thanks for the suggestion. Yes the ASCII method works, but the station info doesn't come through which is critical to my workflow.
Re: PTX files with normals
Ok, I've made the change in the latest 2.14.beta version online (for Windows). Tell me if it works.
And even better, if you could send me a sample file, that would very useful to check that I've done things correctly.
And even better, if you could send me a sample file, that would very useful to check that I've done things correctly.
Daniel, CloudCompare admin
Re: PTX files with normals
The sensor is not imported correctly because the I/O filter for ASCII files is parsing data -> to points only.
Hence, CC will need a better, ad hoc filter for that format, in order to get the job done.
For now, you can painfully use the data to craft by hand the sensor item..... or can you?
is CC able to add a sensor and editing data into it by hand?
Hence, CC will need a better, ad hoc filter for that format, in order to get the job done.
For now, you can painfully use the data to craft by hand the sensor item..... or can you?
is CC able to add a sensor and editing data into it by hand?
Re: PTX files with normals
So, the I/O filter has been updated already. I'm just waiting for some feedback from someone owning real PTX files with normals.
Daniel, CloudCompare admin
Re: PTX files with normals
Hi Daniel,
No luck with the latest beta. Still getting a malformed error.
Here is a PTX file with normals. It has been exported from Leica Register 360. This is one setup in a project of registered point clouds.
https://www.dropbox.com/scl/fi/lb1qyxt9 ... nxz2i&dl=0
NB: The file is 1.5GB in size.
Also, here is an e57 version of the same cloud that imports fine: https://www.dropbox.com/scl/fi/f841ksj7 ... ruyms&dl=0
No luck with the latest beta. Still getting a malformed error.
Here is a PTX file with normals. It has been exported from Leica Register 360. This is one setup in a project of registered point clouds.
https://www.dropbox.com/scl/fi/lb1qyxt9 ... nxz2i&dl=0
NB: The file is 1.5GB in size.
Also, here is an e57 version of the same cloud that imports fine: https://www.dropbox.com/scl/fi/f841ksj7 ... ruyms&dl=0
Re: PTX files with normals
framed,
the .ptx files you shared is a bit weird.
let me paste the first data in it:
and so on....
There are A LOT of zeroes...
the header will not be read as sensor data at all, for now, in CC, using the ASCII I/O filter, as EVERY row will be interpreted as points and/or normals or scalar fields, or RGB channels. This can be set at import time.
please note the trick. .ptx edited to .pts
opened with ASCII filter
set up things in the import wizard form (note the arrows)
result: normals and RGB are valid
the .ptx files you shared is a bit weird.
let me paste the first data in it:
Code: Select all
10168
4166
0.000000 0.000000 0.000000
1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
0.637030 0.770839 -0.000195 0.000000
-0.770839 0.637030 0.000483 0.000000
0.000497 -0.000157 1.000000 0.000000
1.135838 1.126922 0.620313 1.000000
0 0 0 0 0 0 0 0 0 0
-0.034154 -0.002539 0.300672 0.551171 175 180 173 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
-0.034154 -0.004539 0.300672 0.499992 175 180 173 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0There are A LOT of zeroes...
the header will not be read as sensor data at all, for now, in CC, using the ASCII I/O filter, as EVERY row will be interpreted as points and/or normals or scalar fields, or RGB channels. This can be set at import time.
please note the trick. .ptx edited to .pts
opened with ASCII filter
set up things in the import wizard form (note the arrows)
result: normals and RGB are valid
Re: PTX files with normals
Thanks c3kkos,
The reason for the zeros is that this is gridded data, measured from a single terrestrial scanner setup. Zeros represent no return measurement (eg. sky). Yes the ASCII import option works, but the sensor data is critical to my workflow.
The reason for the zeros is that this is gridded data, measured from a single terrestrial scanner setup. Zeros represent no return measurement (eg. sky). Yes the ASCII import option works, but the sensor data is critical to my workflow.