Compute Normals on PTX

Feel free to ask any question here
Post Reply
PMDevine
Posts: 3
Joined: Wed Jan 20, 2021 7:42 pm

Compute Normals on PTX

Post by PMDevine »

Hello,

I am calculating normals on a structured PTX cloud using the COMPUTE_NORMALS command. It seems like it does a really good job, but the normals are inverted. I always need to go into the GUI and "invert normals" for them to visually seem correct (based off the white/black color). It seems that the normals are outward facing instead of inward facing like I would expect them to be. Is there any way to specify that the normals point inward using the COMPUTE_NORMALS command? Or is there any way to invert the normals in command line?

Thanks,
Phil
daniel
Site Admin
Posts: 7385
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Compute Normals on PTX

Post by daniel »

Normally, we prefer normals to point outwards by default (for most objects). But of course it doesn't work for indoor scans for instance.

And that's silly, but currently there's no way to invert normals. I've added an option '-INVERT_NORMALS' to the command line of the latest 2.12.alpha version.
Daniel, CloudCompare admin
PMDevine
Posts: 3
Joined: Wed Jan 20, 2021 7:42 pm

Re: Compute Normals on PTX

Post by PMDevine »

Awesome, thanks so much, Daniel!
daniel
Site Admin
Posts: 7385
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Compute Normals on PTX

Post by daniel »

The latest 2.12.alpha version is now online (previously, this new INVERT_NORMALS option was not active!)
Daniel, CloudCompare admin
Post Reply