SLR works with Archimedean

This commit is contained in:
Zeno Rogue
2019-09-12 22:50:15 +02:00
parent 7bd80dab18
commit afa3cd599d
3 changed files with 15 additions and 6 deletions
+11 -3
View File
@@ -576,9 +576,17 @@ void geometry_information::prepare_basics() {
steps = 0;
single_step = 1;
if(sl2) {
single_step = S3 * S7 - 2 * S7 - 2 * S3;
steps = 2 * S7;
if(BITRUNCATED) steps *= S3;
if(hybrid::underlying == gArchimedean) {
ld s = arcm::current.euclidean_angle_sum - 2;
single_step = 2;
DEBB(DF_GEOM | DF_POLY, ("1/s = ", 1/s));
steps = 4/s + .5;
}
else {
single_step = S3 * S7 - 2 * S7 - 2 * S3;
steps = 2 * S7;
if(BITRUNCATED) steps *= S3;
}
DEBB(DF_GEOM | DF_POLY, ("steps = ", steps, " / ", single_step));
plevel = M_PI * single_step / steps;
}