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

Volume from SDF #36

Open
BartBruininks opened this issue Nov 11, 2022 · 3 comments
Open

Volume from SDF #36

BartBruininks opened this issue Nov 11, 2022 · 3 comments

Comments

@BartBruininks
Copy link

Hello developers,

I would like to calculate the total volume of an arbitrary sphere based SDF object. For now I am casting the SDF to a mesh and then use that to calculate the volume. However, writing the mesh is by far the most expensive step. I guess this is mainly due to the marching cubes. I was wondering if there is a way to get the volume from the voxels generated for the marching cubes directly. Or even better get the 'analytical' volume of the SDF without going to voxels at all?

Cheers and thanks in advance.

Bart

PS
If we get this working we will probably write a small algorithm about it and if you are interested you can partake in this publication. We can talk about the details later.

@imagirom
Copy link

Hello Bart, are you still interested in this? Have you found another solution?

@nobodyinperson
Copy link

In my fork sdfCAD I have implemented a kind of monte-carlo volume calculation with e.g. sphere(1).volume().

@BartBruininks
Copy link
Author

Ahh nice :D

yhea I run into thi issue quite often so who knows I might need it again! The complete problem I was trying to solve was to find the mismatch and overlap between 2 3d point cloud densities. For now I am not working on it, but I will keep it in mind.

Cheers,

Bart

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

3 participants