image[i*width + j] = (sin(j/10.0) + 0.5*sin(j/4.0))*cos(i/7.0) + i*j*0.5*1e-3;
// Create complex and add image
- typedef simplicial_complex<2, uint32_t, float> scomplex;
+ typedef simplicial_function<2, uint32_t, float> sfunction;
+ typedef sfunction::scomplex scomplex;
scomplex s;
- add_image_to_complex(s, image, width, height);
- assert(s.is_monotone());
+ sfunction f(s);
+ add_image_to_simplicialfunction(f, image, width, height);
+ assert(f.is_monotone());
typedef scomplex::simplex_order sorder;
sorder so(s);