creating a uniform basic marching cubes isosurface

   282   2   0
User Avatar
Member
36 posts
Joined: Feb. 2016
Offline
Hello, I'm trying to create a basic marching cubes volume meshing workflow, like this for example:
https://www.megavoxels.com/learn/how-to-use-marching-cubes-in-magicavoxel/ [www.megavoxels.com]


I have managed to get a close look by using uniformly distributed points and then the isooffset node followed by a convert node.
No matter how I tweak the parameters, i cant get the mesh to lign up in any sort of meaningful way with my grid points, the closest I can get is if I set the volume offset parameter in the convert node to a very tiny number, like 0.00001.

The mesh seems to align along the vertical axis but not the other two axes, I'm not sure how to set up a perfectly aligned basic meshing with uniform aspect ratio and distances from grid points
Edited by NNNenov - April 16, 2024 15:49:09
User Avatar
Member
36 posts
Joined: Feb. 2016
Offline
here ive set the div size to 0.48 (grid spacing is 1) and it seems to give perfect alignment along 2 axes but not the vertical axis, what is the cause of the non-uniformity?

this is the hip file:
https://www.dropbox.com/scl/fi/aft674euwc67y25d9s09o/isooffset_2.jpg?rlkey=bqi5h4esipejffbk9ouvlt1is&raw=1 [www.dropbox.com]
User Avatar
Member
36 posts
Joined: Feb. 2016
Offline
I've found that the isooffset node has an isosurface output type, which I also havent had luck getting that uniform basic look with
  • Quick Links