renamed get_face_vertices to get_face_vertex_count, and added new get_face_vertices

This commit is contained in:
Zeno Rogue 2021-07-07 23:32:22 +02:00
parent 4f09bf2124
commit 3e1e0f3f18
2 changed files with 7 additions and 3 deletions

View File

@ -3782,7 +3782,7 @@ EX int get_darkval(cell *c, int d) {
const int darkval_nil[8] = {6,6,0,3,6,6,0,3};
const int darkval_nih[11] = {0,2,0,2,4,6,6,6,6,6,6};
if(among(variation, eVariation::dual_subcubes, eVariation::bch)) {
int v = reg3::get_face_vertices(c, d);
int v = reg3::get_face_vertex_count(c, d);
return v-3;
}
if(sphere) return darkval_s12[d];

View File

@ -542,9 +542,13 @@ EX namespace reg3 {
return wo.first;
}
EX int get_face_vertices(cell *c, int d) {
EX const vector<hyperpoint>& get_face_vertices(cell *c, int d) {
auto m = (hrmap_closed3*) currentmap;
return isize(cgi.subshapes[m->local_id[c].second].faces[d]);
return cgi.subshapes[m->local_id[c].second].faces_local[d];
}
EX int get_face_vertex_count(cell *c, int d) {
return isize(get_face_vertices(c, d));
}
void hrmap_closed3::initialize(int big_cell_count) {