3d models in product space

This commit is contained in:
Zeno Rogue
2019-09-12 22:50:13 +02:00
parent 00f4f4fca5
commit fb0f5872c8
8 changed files with 111 additions and 56 deletions
+16
View File
@@ -437,6 +437,20 @@ void geometry_information::prepare_basics() {
goto finish;
}
if(prod) {
auto t = this;
product::in_underlying_geometry([&] {
t->rhexf = cgi.rhexf;
t->hexf = cgi.hexf;
t->crossf = cgi.crossf;
t->hcrossf = cgi.crossf;
t->tessf = cgi.tessf;
t->hexhexdist = cgi.hexhexdist;
t->base_distlimit = cgi.base_distlimit-1;
});
goto prod_finish;
}
if((sphere || hyperbolic) && WDIM == 3 && !binarytiling) {
rhexf = hexf = 0.378077;
crossf = hcrossf = 0.620672;
@@ -512,6 +526,8 @@ void geometry_information::prepare_basics() {
if(binarytiling) binary::build_tmatrix();
#endif
prod_finish:
scalefactor = crossf / hcrossf7;
orbsize = crossf;