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

How to calculate spc dual point coordinates. #789

Open
ankarako opened this issue Apr 2, 2024 · 2 comments
Open

How to calculate spc dual point coordinates. #789

ankarako opened this issue Apr 2, 2024 · 2 comments

Comments

@ankarako
Copy link

ankarako commented Apr 2, 2024

Hi there, and thanks so much for keeping this project alive with new features.

I am currently using structured point clouds, and I would like to know if there is a way to calculate the vertex coordinates of a voxel in spc (propably through the dual pyramid and point hierarchy). Until now I haven't found an out-of-the-box way of doing that with kaolin functions and objects.
I thought of calculating them and maybe keeping them as features for an spc, but is there a way to know the center and the extend of the grid?

Thanks for your time.

@Caenorst
Copy link
Collaborator

Caenorst commented Apr 4, 2024

Hi @ankarako , if I understand well, you could use https://kaolin.readthedocs.io/en/latest/modules/kaolin.ops.spc.html#kaolin.ops.spc.points_to_corners on the truncated point_hierarchy (use pyramids to get the bounds)

@ankarako
Copy link
Author

ankarako commented Apr 5, 2024

Thanks @Caenorst,

Indeed, I came to that, but can I de-quantize the resulting points?

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