Commit Graph

10 Commits

Author SHA1 Message Date
Marc Gilleron
572dcbf680 Move this code closer to what uses it 2019-04-22 21:15:45 +01:00
Marc Gilleron
0808bf2691 Fix border dual cells not generating due to octree offset, implement alternative bottom-up octree 2019-04-22 01:28:53 +01:00
Marc Gilleron
91a5c7ffa8 A bit of reorganization and tweaks:
- Moved HermiteValue in its own file
- VoxelBuffer channels are now predefined
- Create DualGridGenerator for easier passing of data
- Chunk size is no longer hardcoded
- Respect padding when polygonizing voxels
- BUG: due to the above, the way we build the octree is now breaking the result as mentionned in the TODO
2019-04-21 19:31:35 +01:00
Marc Gilleron
35ff5fd546 Rename VoxelMesherSmooth => VoxelMesherTransvoxel 2019-04-21 14:47:50 +01:00
Marc Gilleron
9bb81f9bb7 Fix dependency in utility.h, move MeshBuilder to its own file, re-use vertex arrays 2019-04-21 01:14:28 +01:00
Marc Gilleron
35e03f7e77 Fix a few mistakes in dual grid derivation 2019-04-20 23:34:22 +01:00
Marc Gilleron
d52fecaa79 Fix offset between contour and source shape 2019-04-20 22:38:09 +01:00
Marc Gilleron
d74201c93f Added marching cubes polygonization, almost works but sometimes holes appear 2019-04-20 21:21:45 +01:00
Marc Gilleron
a12435266f Fix dual grid debug mesh not making cubes properly; check for emptyness 2019-04-20 18:08:00 +01:00
Marc Gilleron
1181cfa59f Dual marching cubes WIP (only octree and dual grid extraction, untested) 2019-04-20 17:32:10 +01:00