Skip to content

Commit

Permalink
Improve introduction texts for modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ricktu288 committed Jun 4, 2024
1 parent d81c0a2 commit e399592
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cn/modules/tutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
<div class="container">

<h1 id="tutorial">「射线光学模拟」模块制作教程</h1>
<p>本教学将引导您完成建立自定义模块的基本步骤。这个功能可完全在本模拟器网页程序中实现,而不需要其他的开发环境。</p>
<p>本教程将引导您完成建立自定义模块的基本步骤。这个功能可完全在本模拟器网页程序中实现,而不需要其他的开发环境。</p>
<p>「模块」是「线光学模拟」的一个目前处于实验阶段的功能,它允许将物件以模块化的方式组合在一起,其中可包含自定义参数、自定义控制点与物件数组。本功能透过将本模拟器中现有的工具所建立的物件进行组合、特化或重新参数化,来制作新的工具,以扩充本模拟器的功能。例如,<code>CircleSource</code>模块(请参见工具-&gt;其他-&gt;导入模块)将现有的「点光源(&lt;360°)」工具所建立的一系列点光源沿着一个圆形组合在一起,成为一个「圆形光源」工具,这在模拟器中原本并不存在。<code>FresnelLens</code>模块则是将「透光物-&gt;自定义函数」工具特化,使函数表示菲涅耳透镜的特定曲线,由切片数参数化,以制作一个特化的「菲涅耳透镜」工具,这在模拟器中原本也不存在。除了制作新工具外,这个功能还可以使一些光学演示更具互动性。例如,通过拖曳<code>BeamExpander</code>模块的第三个控制点,可以直接观察两个透镜的共同焦点位置如何影响光束宽度,而无需分别调整两个透镜的焦距。</p>
<p>注意并非所有的自定义控制点都需要模块。一些简单的情况可能可以通过「控制杆」功能实现(请参见模拟器右下角的帮助弹出窗口中的「群组、旋转和缩放物件」部分)。由于制作模块比建立控制杆复杂得多,您应该在考虑制作模块之前检查您的情况是否可以通过「控制杆」功能实现。比如<a href="https://phydemo.app/ray-optics/cn/gallery/black-cat-becomes-white">这个例子</a>展示了一个相对复杂但不必使用模块的自定义控制点(将两个塑料袋从水中移开)。</p>
<h2 id="the-built-in-json-editor">内置的JSON编辑器</h2>
Expand Down
2 changes: 1 addition & 1 deletion tw/modules/modules.html
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
</div>

<h2>客製化</h2>
您可直接在本網頁程式中使用內建的 JSON 編輯器製作或客製化模組。請參見<a href="https://phydemo.app/ray-optics/modules/tutorial" target="_blank">教學</a>。將匯入的模組客製化僅會影響目前的場景。
您可直接在本網頁程式中使用內建的 JSON 編輯器製作或客製化模組。請參見<a href="https://phydemo.app/ray-optics/tw/modules/tutorial" target="_blank">教學</a>。將匯入的模組客製化僅會影響目前的場景。
<h2>貢獻</h2>
<p>歡迎您貢獻項目至以上的清單。請將項目加入到<a href="https://github.com/ricktu288/ray-optics/tree/master/modules" target="_blank">此資料夾</a>中並建立 pull request。如果您對 GitHub 不熟,也可直接將包含模組的檔案傳送至<a href="mailto:ray-optics@phydemo.app" target="_blank">ray-optics@phydemo.app</a></p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion tw/modules/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
{CATEGORIES}

<h2>客製化</h2>
您可直接在本網頁程式中使用內建的 JSON 編輯器製作或客製化模組。請參見<a href="https://phydemo.app/ray-optics/modules/tutorial" target="_blank">教學</a>。將匯入的模組客製化僅會影響目前的場景。
您可直接在本網頁程式中使用內建的 JSON 編輯器製作或客製化模組。請參見<a href="https://phydemo.app/ray-optics/tw/modules/tutorial" target="_blank">教學</a>。將匯入的模組客製化僅會影響目前的場景。
<h2>貢獻</h2>
<p>歡迎您貢獻項目至以上的清單。請將項目加入到<a href="https://github.com/ricktu288/ray-optics/tree/master/modules" target="_blank">此資料夾</a>中並建立 pull request。如果您對 GitHub 不熟,也可直接將包含模組的檔案傳送至<a href="mailto:ray-optics@phydemo.app" target="_blank">ray-optics@phydemo.app</a></p>
</div>
Expand Down

0 comments on commit e399592

Please sign in to comment.