reflect — 3D optics op

Data kinds: vector × normalsnormals

Call: import fullseye as fs; fs.ledger.reflect(d, n) (to call the implementation directly, import match3d; match3d.reflect(d, n); from the registry, ops3d.get("reflect"))

Usage

Specularly reflect the incident direction d at a surface with normal n. r = d − 2(d·n)n.

> The detailed description below is the original text — the summary and the headings are translated.

`d, n は内部で単位化する(長さは問わない)ので、返り値 r` も単位ベクトル。最後の軸を

ベクトルとみなすので `(3,) でも (N,3) のバッチでも動く(2-D の (2,) も可)。n` の

向きは問わない(`n−n で同じ r)。d` は「面へ向かう」向き(光線の進行方向)で

渡す。零ベクトルは 1e-12 で割って 0 のまま返る(例外は出ない)。

用途: `normal_from_reflection の逆問題、鏡面レンダの視線追跡(refract` と対)。

References (sample data, literature)

• 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.

Runnable examples (verified samples that actually call this op)

sensor_segpy -3.11 examples_3d/sensor_seg.py

snell_refractionpy -3.11 examples_3d/snell_refraction.py

Ops the type connects to (they accept normals as input)

icp_point2plane · compute_fpfh · shot_descriptor · fuse_to_voxel · refract · normal_consistency · ransac_cylinder · orient_normals

Same category (optics)

refract · 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.