找回密码
 快速注册
搜索
查看: 77|回复: 2

Asymptote web version椭球体是正球?

[复制链接]

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

hbghlyj 发表于 2022-6-9 18:32 |阅读模式
本帖最后由 hbghlyj 于 2023-2-19 01:55 编辑

import three;
size(4cm,0);
draw(scale(2,1,1)*unitsphere,surfacepen=material(white+opacity(0.4)),
meshpen=gray(0.4));
draw(O--2X, blue); //x-axis
draw(O--2Y, green); //y-axis
draw(O--2Z, red); //z-axis
在本机,画出来是椭球体(沿x轴拉长的单位球),这是所期望的. 但是,在Web version 画出来是正球体(放大的单位球)

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2023-2-19 06:25
本帖最后由 hbghlyj 于 2023-5-1 15:48 编辑 已提交sourceforge.net/p/asymptote/discussion/409349/thread/cb39fdfd39/
John Bowman

This is a bug with html output (not specific to asymptote.ualberta.ca/), which we will try to fix soon. Thanks for reporting this.
v2.86 已修复该问题
John Bowman - 5 days ago

This bug is now fixed in git and on asymptote.ualberta.ca/ and will be in the upcoming 2.86 release. In the future, it is better to post bug reports at github.com/vectorgraphics/asymptote/issues

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2023-2-25 04:34
本帖最后由 hbghlyj 于 2023-5-1 15:53 编辑 画一个橙色的球:
unitsize(5cm);import three;
draw(shift(0,0,0)*scale(1,1,1)*unitsphere,orange);

加上render=0
settings.render=0;unitsize(5cm);import three;
draw(shift(0,0,0)*scale(1,1,1)*unitsphere,orange);

unitsphere是由8片拼成的
可以看到缝线

手机版|悠闲数学娱乐论坛(第3版)

GMT+8, 2025-3-4 12:25

Powered by Discuz!

× 快速回复 返回顶部 返回列表