hemisphere in spherical now produces the hyperboloid model

This commit is contained in:
Zeno Rogue committed 2022-04-07 20:50:16 +02:00
1 parent 65b4b88ce4
commit 589d2dd72c
4 files changed
+85 -21

No files matched your search

+6 -2
View File
@@ -222,6 +222,10 @@ EX namespace models {
if(sphere) return (mdinf[m].flags & mf::broken) ? 2 : 0;
return 0;
}
EX bool is_hyperboloid(eModel m) {
return m == (sphere ? mdHemisphere : mdHyperboloid);
}
EX bool is_perspective(eModel m) {
return among(m, mdPerspective, mdGeodesic);
@@ -592,7 +596,7 @@ EX namespace models {
});
}
if(vpmodel == mdHyperboloid)
if(is_hyperboloid(vpmodel))
add_edit(vpconf.top_z);
if(has_transition(vpmodel))
@@ -613,7 +617,7 @@ EX namespace models {
if(vpmodel == mdFisheye)
add_edit(vpconf.fisheye_param);
if(vpmodel == mdHyperboloid)
if(is_hyperboloid(vpmodel))
add_edit(pconf.show_hyperboloid_flat);
if(vpmodel == mdCollignon)