mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-08 23:20:12 +00:00
renamed get_face_vertices to get_face_vertex_count, and added new get_face_vertices
This commit is contained in:
parent
4f09bf2124
commit
3e1e0f3f18
@ -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_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};
|
const int darkval_nih[11] = {0,2,0,2,4,6,6,6,6,6,6};
|
||||||
if(among(variation, eVariation::dual_subcubes, eVariation::bch)) {
|
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;
|
return v-3;
|
||||||
}
|
}
|
||||||
if(sphere) return darkval_s12[d];
|
if(sphere) return darkval_s12[d];
|
||||||
|
8
reg3.cpp
8
reg3.cpp
@ -542,9 +542,13 @@ EX namespace reg3 {
|
|||||||
return wo.first;
|
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;
|
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) {
|
void hrmap_closed3::initialize(int big_cell_count) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user