noncoaxial_drawing — OPTICS drawing op

• Data kinds: table → table

• Call: import fullseye as fs; fs.ledger.noncoaxial_drawing(system, fields=None, rays=3, view='yz', scale=None, title=None, profile_points=61, rotate_deg=0, overlays=None) (to call the implementation directly, import optdraw; optdraw.noncoaxial_drawing(system, fields=None, rays=3, view='yz', scale=None, title=None, profile_points=61, rotate_deg=0, overlays=None); from the registry, opsoptics.get("noncoaxial_drawing"))

Usage

Section / setup drawing of a folded system (table, a drawing dict) — the surfaces, mirrors, beamsplitters, image plane and rays of a raytrace3d system, projected onto the meridional plane in global coordinates.

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

*system* は raytrace3d.noncoaxial_system の系(raytrace.lens_system の処方も受ける)。*view* は投影面:

"yz"(横軸 = 大域の z、縦軸 = y。x 軸まわりの折り返しはこの面に載る)/ "zx"(横軸 z、縦軸 x)。面は局所の子午面の sag 曲線(raytrace の円錐 + 非球面の式)を大域へ写して投影し、ガラスの群はコバの線で閉じ、鏡は裏に斜線、半透鏡は BS の印。光軸は座標系の原点の折れ線(細い一点鎖線)、絞りは口径の外の刻み、像面は像の座標系の線分(image_tilt で傾く)、有限の物体は物面の線分(object_tilt で傾く)。光線は視野ごとに色を分け、絞りの上で等間隔に絞りを狙った実光線(raytrace3d の Newton 法)。

*rotate_deg*(0 / 90 / 180 / 270)は紙の上で図を回す(同軸落射のように光が下から上へ進む装置を立てて描く)。*overlays* は別の系(例: 照明の枝 = 半透鏡で反射する系)の列で、その光線を照明の光線の層に重ねて描く(面は細線)。

寸法: 装置の占有の幅 W と高さ H(面・像面・光線の外接矩形)。注記: 光路長(第 1 面 → 像面の軸の長さ)、折り返しの角度。values: path_length / footprint / fold_angles_deg / 面ごとの大域の頂点 surfaces / 光線の大域の折れ線 rays / image_center。

Family-wide input contract (fail-closed)

Every optics op validates its input before computing (nothing slips through silently):

• Units are baked into the argument name — _mm / _um / _deg / _mrad. Confusing mm with µm does not crash; it yields a plausible-looking wrong answer, so the name prevents it. Nothing here guesses the unit from the magnitude.

• Strings raise ValueError — float('50') succeeds, so an unparsed configuration value would slip through as a length (measured: thin_lens('50', '200') returned a plausible 66.667 mm). bool is refused too, as the implicit promotion True == 1.

• complex / masked arrays raise ValueError (real-valued slots only; silently dropping the imaginary part or peeling off the mask is refused). NaN/Inf raises ValueError on every input.

• Division by zero and its relatives are refused by name: focal length 0, radius of curvature 0, refractive index <= 0, a fully opaque aperture (all zeros, so the normalisation is 0/0), a PSF whose sum is <= 0, a Stokes vector with S0 = 0, and an object sitting at the front focal point (the image is at infinity).

• Only two ops return a non-finite value, and both state it as a contract: depth_of_field returns far_mm = inf beyond the hyperfocal distance (that is what the hyperfocal distance means), and gaussian_beam returns wavefront_radius_mm = inf at the waist (the radius of curvature of a plane wavefront). Both also return a finite companion (far_is_infinite / curvature_per_mm). Any other silent NaN/Inf is detected internally and raises ValueError — "float64 overflowed" and "the answer is infinite" are different claims, so the first is never returned wearing the face of the second.

• Size caps: generated grids are capped by optics.MAX_GRID (4096); supplied fields/PSFs/apertures by optics.MAX_FIELD_ELEMENTS (2^24); ABCD element chains by optics.MAX_SYSTEM_ELEMENTS (1024); Zernike by MAX_ZERNIKE_TERMS (512) / MAX_ZERNIKE_ORDER (40) / MAX_ZERNIKE_BASIS (2^25). This closes, fail-closed, the paths where a small argument triggers a huge internal allocation (measured: n_max=40 × 4096² needs 108 GB).

• Physically impossible states are refused too: a Stokes vector with degree of polarisation > 1, negative transmittance, negative intensity, and invalid Zernike indices such as n-|m| odd.

Detailed usage guide

• optics_imaging family guide

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.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

• poc_noncoaxial_optics — py -3.11 examples/poc_noncoaxial_optics.py

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

abcd_matrix · wavefront_stats · sfr_from_edge · paraxial_trace · seidel_coefficients · spot_stats · tolerance_analysis · wavefront_from_opd

Same category (drawing)

lens_section_drawing · vision_setup_drawing · lens_element_drawing · drawing_svg · drawing_dxf · drawing_raster · svg_entities · dxf_entities


*Provenance: optdraw.py — OPTICS 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.