Forgot password
 Register account
View 234|Reply 2

复制当前投影

[Copy link]

3211

Threads

7832

Posts

52

Reputation

Show all posts

hbghlyj posted 2024-2-16 07:37 |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
有这么多值得探索的地方

3211

Threads

7832

Posts

52

Reputation

Show all posts

original poster hbghlyj posted 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:

3211

Threads

7832

Posts

52

Reputation

Show all posts

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

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

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-20 05:46 GMT+8

Powered by Discuz!

Processed in 0.012337 seconds, 25 queries