The Marching Cubes algorithm can be generalized to other convex mesh elements such as pyramids or bipyramids. Each such mesh element has a different isosurface lookup table. The table entries correspond to different configurations of positive and negative vertices. Each entry contains a list of edge triples, (e1, e2, e3), representing triangles with vertices on edges e1, e2, and e3.