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

Option to orient normal with custom camera point #183

Open
bharathrajad opened this issue Jul 17, 2024 · 4 comments
Open

Option to orient normal with custom camera point #183

bharathrajad opened this issue Jul 17, 2024 · 4 comments

Comments

@bharathrajad
Copy link

Can option to orient normal with custom camera point instead of origin provision be given for input ? Thanks

@prascle
Copy link
Collaborator

prascle commented Jul 17, 2024

Hello,
I'm not sure I understand your question. There are already two functions to manage camera position, view direction and orientation (upwards): setCustomView and setCameraPos. If this isn't what you want, could you explain in more detail?
Best regards,
Paul

@bharathrajad
Copy link
Author

bharathrajad commented Jul 18, 2024

sorry for the ambiguous incomplete question. I am having multiple point cloud scans, which i shift to world coordinate from sensor local coordinates. so, the origin gets shifted. I am not seeing any direction option to give in custom origin point from which compute_normals directions can be oriented towards. There is tools -> compute normals -> orientation option, where there is option for "from sensor origin", "towards sensor origin", but no option to select the sensor or custom camera position in both GUI/Cloudcompy.

Sharing sample option in Open3d equivalent to the one i needed :
https://www.open3d.org/docs/0.7.0/python_api/open3d.geometry.orient_normals_towards_camera_location.html

@prascle
Copy link
Collaborator

prascle commented Jul 26, 2024

Hello,
I think I'll be able to add a function for this use in the next version, I've found the corresponding methods in CloudCompare's C++ code.

Best regards,
Paul

@bharathrajad
Copy link
Author

Thanks very much for the support.

prascle added a commit to prascle/CloudComPy that referenced this issue Sep 16, 2024
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