Forgot password?
 Create new account
View 154|Reply 2

复制当前投影

[Copy link]

3148

Threads

8489

Posts

610K

Credits

Credits
66148
QQ

Show all posts

hbghlyj Posted at 2024-2-16 07:37:02 |Read mode
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. }
Copy the Code
有这么多值得探索的地方

3148

Threads

8489

Posts

610K

Credits

Credits
66148
QQ

Show all posts

 Author| hbghlyj Posted at 2024-2-16 07:57:58
上面是在浏览器中,下面是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:

3148

Threads

8489

Posts

610K

Credits

Credits
66148
QQ

Show all posts

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

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

手机版Mobile version|Leisure Math Forum

2025-4-20 12:11 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list