Using Voxel Centers for Marching Cubes#12
Conversation
…hat the SDF is defined on voxel centers, not corners.
…e voxel centers as reference points, thereby shifting the final mesh slightly.
|
This is an interesting PR. I would like to adapt the API to allow the user which kind of reference points they want (the original style or the voxel centers). I have to think about it. By the way, your commit 34ce2be is adding |
|
No adding Regarding the API, I think it would be very nice to let the user switch. For my research, I actually used at least two different variants (voxel centers and voxel corners). But I simply duplicated the marching cubes functions - quick and dirty before the deadline. |
|
@pmneila: Removed |
|
I think this doesn't make sense and would only make things confusing. |
Unfortunately, I cannot create a pull request for a new branch.
This pull request includes the changes of #11 and additionally changes the marching cubes algorithm to use the voxel centers as reference points. This shifts the resulting mesh slightly.
@pmneila: I suggest not merging this pull request into master; you can create a new branch if you like, otherwise this pull request is just for people interested in the changes and you can leave it open.
Thanks.