Last active
December 20, 2019 02:57
-
-
Save marty958/cd48472f19515afe2d710a716041265d to your computer and use it in GitHub Desktop.
Use Marching Cubes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "CIsoSurface.h" | |
using namespace std; | |
int main() { | |
const int pnum = 2; | |
float field[pnum][pnum][pnum] = {1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}; | |
CIsoSurface<float> *ciso = new CIsoSurface<float>(); | |
ciso->GenerateSurface(&field[0][0][0], 0.5, pnum - 1, pnum - 1, pnum - 1, 1.0, 1.0, 1.0); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment