当我使用渐近线函数时,project
我遇到了一些图片缩放的奇怪问题。以下是一个例子:
import three;
settings.render = 0;
size(8cm,0);
path3 p1 = unitsquare3;
triple T1 = (0,0,0);
triple T2 = (0.8,0,0);
path3 t = T1 -- T2;
transform3 s1 = shift((0.3,0.2,0)) * rotate(65,(0,0,1));
transform3 s2 = shift((0.1,0.5,0)) * rotate(-20,(0,0,1));
path3 b_1 = s1 * t;
path3 b_2 = s2 * t;
draw(project(p1));
draw(project(b_1));
draw(project(b_2));
label("$\beta$",(0.95,0.95,0),N);
让我们改变上面的代码:
draw(p1);
draw(b_1);
draw(b_2);
让我们再次改变这个代码:
draw(project(p1));
draw(b_1);
draw(project(b_2));
现在我们可以看到第三张图片:
再次改变:
draw(p1);
draw(b_1);
draw(project(b_2));
在这种情况下我们可以再次看到第二张图:
如何解释这种奇怪的函数行为project
?
答案1
import three;
您可以通过在行后插入来防止视点被调整
currentprojection=perspective(1,1,1,autoadjust=false);