mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-20 14:13:02 +00:00
arb:: valence known
This commit is contained in:
parent
06c8f48aa0
commit
83ffa89fbf
@ -84,6 +84,8 @@ struct arbi_tiling {
|
|||||||
ld boundary_ratio;
|
ld boundary_ratio;
|
||||||
string filename;
|
string filename;
|
||||||
|
|
||||||
|
int min_valence, max_valence;
|
||||||
|
|
||||||
geometryinfo1& get_geometry();
|
geometryinfo1& get_geometry();
|
||||||
eGeometryClass get_class() { return get_geometry().kind; }
|
eGeometryClass get_class() { return get_geometry().kind; }
|
||||||
|
|
||||||
@ -364,6 +366,13 @@ EX void compute_vertex_valence() {
|
|||||||
if(debugflags & DF_GEOM)
|
if(debugflags & DF_GEOM)
|
||||||
println(hlog, "computed vertex_valence of ", i, " as ", ac.shapes[i].vertex_valence);
|
println(hlog, "computed vertex_valence of ", i, " as ", ac.shapes[i].vertex_valence);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ac.min_valence = UNKNOWN; ac.max_valence = 0;
|
||||||
|
for(auto& sh: ac.shapes)
|
||||||
|
for(auto& val: sh.vertex_valence) {
|
||||||
|
if(val < ac.min_valence) ac.min_valence = val;
|
||||||
|
if(val > ac.max_valence) ac.max_valence = val;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
EX void load(const string& fname, bool after_sliding IS(false)) {
|
EX void load(const string& fname, bool after_sliding IS(false)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user