Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quadric Fitting for Normal Generation in cloudComPy #195

Open
kai0416s opened this issue Oct 20, 2024 · 1 comment
Open

Quadric Fitting for Normal Generation in cloudComPy #195

kai0416s opened this issue Oct 20, 2024 · 1 comment

Comments

@kai0416s
Copy link

Thank you for your excellent open-source work.

Some point clouds include normals, while others do not. I noticed that in CloudCompare, it is possible to generate normals using quadric fitting with a radius of 20 (which can be adjusted based on user requirements).

I would like to ask how I can achieve this in cloudComPy. I saw cloudComPy.ccQuadric, but it doesn't seem related to generating normals through quadric fitting with a radius of 20.

Your help would be greatly appreciated. Thank you!

@prascle
Copy link
Collaborator

prascle commented Oct 24, 2024

Hello,
Sorry for the late reply, this should work, but I haven't tried it and the CloudComPy documentation is not clear on this point. With computeNormals, you need to use the model (LOCAL_MODEL_TYPES.QUADRIC) and defaultRadius parameters:
cc.computeNormals([cloud1], model=cc.LOCAL_MODEL_TYPES.QUADRIC, defaultRadius=20)
Warning: try low values for the defaultRadius parameter first, as the calculation could take a long time...
I will improve the documentation on this point.
Best regards,
Paul

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants