Skip to main content

ray-tracing-shapely-optiland

DOI

3D verification of ray_tracing_shapely designs with Optiland's non-sequential ray tracer. A 2D design is handed over as a profile.json: its outline, the role and mechanism of every surface, and the light it is designed for. Here it becomes a 3D scene, is traced, and comes back.

What it does

  • Solids and sheets from a profile.
    • An extruded profile becomes a solid with polygon end caps.
    • A revolved profile becomes a solid or a mirror of revolution, each surface the one exact Optiland geometry it describes: planes, cones, conics (zones and azimuth cuts included), and two this package adds, a spline of revolution and an even asphere of revolution.
    • Every stored point and normal is checked against the surface built from it.
    • Built solids read back to profile.json (import_from_optiland, import_revolved_from_optiland).
  • Sources. A source specification from the profile is placed where the 2D scene had it. A measured LED's rayfile is traced ray for ray (RayfileSource).
  • 2D against 3D.
    • compare_2d_3d traces the same meridional rays in both engines and compares them face by face.
    • compare_slice_3d compares a rayfile's 2D slice with its own records traced in 3D.
    • Both as flows (Compare2D3DFlow, SliceCompareFlow), from profile files alone (lenses and other solids, revolved mirror sheets, a profile's rayfile source): an agent starts them by name, and their 2D and 3D traces run as jobs an executor follows, here or on Modal.
  • A third engine. A collimator's designed faces in Optiland's sequential mode, for an independent check.
  • What the light did.
    • Event logs cut into one record per ray, and persisted to SQLite for queries.
    • Irradiance maps on a plane past the optic, plotted with their sections.
    • Static 3D pictures, rendered off-screen so that they survive a saved notebook, and an inline-Jupyter viewer.
  • Agent tools. Read-only tools over a traced 3D scene and the 2D-against-3D comparison, registered into ray_tracing_shapely's tool lists, and the two comparison flows, registered among the flows that can be started by name.

The components' own pages, in the ray_tracing_shapely repository, say what each part guarantees:

Distinct from the sibling optiland-sms package, an Optiland plugin that makes a profile's spline span a surface of Optiland's sequential engine, which Optiland finds by entry point. This package works in the non-sequential engine, and is found through ray_tracing_shapely's own docs, not Optiland's.

Install

Requires Python 3.11 or later, ray_tracing_shapely 0.3.0 or later and Optiland 0.6.3 or later.

Not yet on PyPI. From a checkout:

pip install -e ".[dev]"
# or, for the inline-notebook viewer:
pip install -e ".[notebook]"

Citing

If you use this software, please cite it, and the ray-tracing-shapely project whose designs it verifies. CITATION.cff carries the metadata for both; GitHub formats it from the Cite this repository link.

This project: doi:10.5281/zenodo.24418339. That is the concept DOI, which always resolves to the latest release. Each release also has its own DOI, to cite when a result must be pinned to the exact version it came from.

ray-tracing-shapely: doi:10.5281/zenodo.23991020.

Licence

Apache-2.0. See NOTICE.txt.

Metadata

Release files for ray-tracing-shapely-optiland 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ray-tracing-shapely-optiland 0.1.1
File Size Uploaded Provenance Actions
ray_tracing_shapely_optiland-0.1.1.tar.gz 171.7 kB With provenance Details for ray_tracing_shapely_optiland-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ray-tracing-shapely-optiland 0.1.1
File Interpreter ABI Platform Actions
ray_tracing_shapely_optiland-0.1.1-py3-none-any.whl Python 3 none any Details for ray_tracing_shapely_optiland-0.1.1-py3-none-any.whl

Total release size: 289.3 kB

Release files / ray_tracing_shapely_optiland-0.1.1.tar.gz

Download URL ray_tracing_shapely_optiland-0.1.1.tar.gz
Size 171.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a039cae4dda99d33a9b1cb99dec979e29b8d202cd3dac23f554d680eb81024c7
BLAKE2b-256 checksum
How to use checksums
e27665445e707630a6acda54daf1cf17cffe8ef17a7486b43fa2e38ba6ce21bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / ray_tracing_shapely_optiland-0.1.1-py3-none-any.whl

Download URL ray_tracing_shapely_optiland-0.1.1-py3-none-any.whl
Size 117.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aea28c8ac6138b147f9d840d6a1ec2fa45eec82365c94bba769bebbf15565e96
BLAKE2b-256 checksum
How to use checksums
b94fde6734d9e9665b41a5f5e81b9ab911356ae774a47697636d6726579ff40d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Security for ray-tracing-shapely-optiland 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ray_tracing_shapely_optiland-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page