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

复制当前投影

[复制链接]

3149

主题

8386

回帖

6万

积分

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

积分
65391
QQ

显示全部楼层

hbghlyj 发表于 2024-2-16 07:37 |阅读模式
Screenshot 2024-02-15 233405.png
在Asymptote网页WebGL中,按Ctrl+C可以复制当前投影,这是如何实现的?
通过Github上的文件搜索:gl.js Line 3156
  1. function showCamera()
  2. {
  3.   if(!window.top.asyWebApplication)
  4.     prompt("Ctrl+c Enter to copy currentprojection to clipboard; then append to asy file:",
  5.            projection());
  6. }
复制代码
有这么多值得探索的地方

3149

主题

8386

回帖

6万

积分

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

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2024-2-16 07:57
上面是在浏览器中,下面是Asymptote应用程序查看器中的类似提示窗口:
https://tex.stackexchange.com/questions/112145/

with asy -V sample.asy > ocamera.asy. An interactive viewer will let you change the view point as you like, and then right-double-click will bring a menu. Click Camera and current camera settings will be saved in ocamera.asy file, looking something like:

3149

主题

8386

回帖

6万

积分

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

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2024-3-16 21:38
补加一个动图演示。
  • 編譯import teapot;
  • 新窗口打開iframe
  • 手工旋轉视角,轉到理想的视角
  • 按Ctrl+C可複製currentprojection

output.gif
在asygl.js的1.011.02版本有,但在1.00版本没有。

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

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

Powered by Discuz!

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