optics opvector × normals → normalsimport 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 と対)。
py -3.11 examples_3d/sensor_seg.pypy -3.11 examples_3d/snell_refraction.pynormals を入力に取れる)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 operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.