Marching: fix static integration process

This commit is contained in:
Théophile Bastian 2018-02-11 20:39:59 +01:00
parent 52ca47cde6
commit 0e026ccad1
2 changed files with 2 additions and 5 deletions

View File

@ -2,10 +2,6 @@
#include <cassert>
const std::vector<MarchingCubes::CubeTri>
MarchingCubes::edges_of_intersection[256] = {
};
MarchingCubes::MarchingCubes(
const ImplicitSurface& surface,
const Cuboid& box,

View File

@ -16,6 +16,8 @@ PREAMBLE = """
typedef MarchingCubes::CubeTri Tri;
typedef std::vector<Tri> TriVect;
typedef MarchingCubes::CubeEdge Edge;
const TriVect MarchingCubes::edges_of_intersection[] = {
"""
@ -206,7 +208,6 @@ def gen_index(base_cases):
def pretty_print(index):
output = ""
output += PREAMBLE
output += "static const TriVect edges_of_intersection[256] = {\n"
for (case_id, case) in enumerate(index):
output += "\tTriVect({\n"