implemented drawBoundary for spiral

This commit is contained in:
Zeno Rogue 2018-11-10 18:11:10 +01:00
parent 147dcb58c4
commit 68c8012d91
1 changed files with 21 additions and 0 deletions

View File

@ -1296,6 +1296,27 @@ void draw_boundary(int w) {
return;
}
break;
case mdSpiral: {
using namespace hyperpoint_vec;
if(euclid) return;
if(p == PPR::CIRCLE) p = PPR::OUTCIRCLE;
auto& sm = conformal::spiral_multiplier;
if(real(sm)) {
queuereset(mdUnchanged, p);
for(ld a=-10; a<=10; a+=0.1) {
cld z = exp(cld(a, a * imag(sm) / real(sm) + M_PI));
hyperpoint ret = hpxyz(real(z), imag(z), 0);
if(vid.skiprope)
ret = mobius(ret, vid.skiprope, 1);
ret *= vid.radius;
curvepoint(ret);
}
queuecurve(ringcolor, 0, p);
queuereset(pmodel, p);
}
return;
}
default: break;
}