optics op• 資料種類:vector × normals → normals
• 呼叫: import fullseye as fs; fs.ledger.reflect(d, n)(要直接呼叫實作,import match3d; match3d.reflect(d, n);從台帳取用則 ops3d.get("reflect"))
把入射方向 d 在法線為 n 的面上鏡面反射。r = d − 2(d·n)n。
d, n 在內部單位化(長度不限),因此回傳值 r 也是單位向量。將最後一個軸視為向量,因此 (3,) 或 (N,3) 的批次都能運作(2-D 的 (2,) 也可以)。n 的朝向不限(n 與 −n 得到相同的 r)。d 請依「射向面」的方向(光線的行進方向) 傳入。零向量被 1e-12 除後仍以 0 回傳(不拋例外)。
用途: normal_from_reflection 的逆問題,鏡面算繪的視線追蹤(與 refract 成對)。
• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。
• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。
• sensor_seg — py -3.11 examples_3d/sensor_seg.py
• snell_refraction — py -3.11 examples_3d/snell_refraction.py
normals 作為輸入)icp_point2plane · compute_fpfh · shot_descriptor · fuse_to_voxel · refract · normal_consistency · ransac_cylinder · orient_normals
optics)refract · fresnel_reflectance · normal_from_reflection · snell_angle
*Provenance: match3d.py — 3D 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.