generate honeycomb rules

This commit is contained in:
Zeno Rogue
2020-01-28 17:58:55 +01:00
parent 6a5b71cbdc
commit 891fd3b0aa
2 changed files with 367 additions and 0 deletions
+2
View File
@@ -592,6 +592,7 @@ EX namespace reg3 {
h.cdata = NULL;
h.alt = NULL;
h.distance = 0;
h.fiftyval = 0;
h.fieldval = 0;
h.c7 = newCell(S7, origin);
if(sphere) spherecells.push_back(h.c7);
@@ -774,6 +775,7 @@ EX namespace reg3 {
created->zebraval = hrand(10);
created->fieldval = fv;
created->distance = parent->distance + 1;
created->fiftyval = 9999;
fixmatrix(T);
reg_gmatrix[created] = make_pair(alt, T);
altmap[alt].emplace_back(created, T);