diff --git a/crystal.cpp b/crystal.cpp index 843eeeed..e37826b5 100644 --- a/crystal.cpp +++ b/crystal.cpp @@ -24,14 +24,6 @@ bool view_east = false; bool used_compass_inside; -const int MAXDIM = 7; - -typedef array coord; -static const coord c0 = {}; - -typedef array ldcoord; -static const ldcoord ldc0 = {}; - ldcoord told(coord c) { ldcoord a; for(int i=0; iget_heptagon_at(c, S7); } +coord get_coord(heptagon *h) { return crystal_map()->hcoords[h]; } +ldcoord get_ldcoord(cell *c) { return crystal_map()->get_coord(c); } + bool is_bi(crystal_structure& cs, coord co) { for(int i=0; i coord; + static const coord c0 = {}; + + typedef array ldcoord; + static const ldcoord ldc0 = {}; + + heptagon *get_heptagon_at(coord c); + coord get_coord(heptagon *h); + ldcoord get_ldcoord(cell *c); + extern colortable coordcolors; extern ld compass_probability; extern bool view_coordinates;