Marching: fix static integration process
This commit is contained in:
parent
52ca47cde6
commit
0e026ccad1
2 changed files with 2 additions and 5 deletions
|
@ -2,10 +2,6 @@
|
|||
|
||||
#include <cassert>
|
||||
|
||||
const std::vector<MarchingCubes::CubeTri>
|
||||
MarchingCubes::edges_of_intersection[256] = {
|
||||
};
|
||||
|
||||
MarchingCubes::MarchingCubes(
|
||||
const ImplicitSurface& surface,
|
||||
const Cuboid& box,
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue