Skip to content

Instantly share code, notes, and snippets.

@marty958
Last active December 20, 2019 02:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marty958/cd48472f19515afe2d710a716041265d to your computer and use it in GitHub Desktop.
Save marty958/cd48472f19515afe2d710a716041265d to your computer and use it in GitHub Desktop.
Use Marching Cubes
#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