optics op• Data kinds: vector × normals → normals
• Call: import fullseye as fs; fs.ledger.refract(d, n, eta1=1.0, eta2=1.5) (to call the implementation directly, import match3d; match3d.refract(d, n, eta1=1.0, eta2=1.5); from the registry, ops3d.get("refract"))
Snell refraction (vector form). d = the incident ray (toward the surface), n = the outward normal on the incident side, indices eta1 → eta2.
> The detailed description below is the original text — the summary and the headings are translated.
透明体を通る光線の曲がりを厳密に。全反射(TIR)なら None。ガラス/レンズ/水中の像歪み計算に。
契約は単一ベクトル。(N,3) バッチも通るが、1 本でも TIR ならバッチ全体が None
(per-ray マスクはしない)。★バッチなら 1 本ずつ回すのではなく
:func:glassmirror.refract_rays を使うこと —— あちらは光線ごとに TIR を判定して
`(方向, TIR マスク)` を返す(TIR の光線は鏡面反射で埋める)。この関数は
「1 本でも欠けたら答えを出さない」fail-closed 側の口として残してある。
`d, n は最後の軸をベクトルとして単位化する。n は入射側(d·n < 0` になる向き)で
渡すこと。逆向きに渡すと `cos θi` が負になり、例外なく誤った方向が返る。返り値は単位ベクトル
(`eta·d + (eta·cosθi − cosθt)·n、eta = eta1/eta2)。eta1 == eta2 なら d` がそのまま
返る。角度で扱うなら `snell_angle、反射率は fresnel_reflectance(cos_i, eta1, eta2)`。
• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).
• Operator provenance and references — the sources of the research/methods this op family came from.
• snell_refraction — py -3.11 examples_3d/snell_refraction.py
normals as input)icp_point2plane · compute_fpfh · shot_descriptor · fuse_to_voxel · reflect · normal_consistency · ransac_cylinder · orient_normals
optics)reflect · fresnel_reflectance · normal_from_reflection · snell_angle
*Provenance: match3d.py — 3D operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.