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

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.2
File Size Uploaded Provenance Actions
ray_tracing_shapely_optiland-0.1.2.tar.gz 179.5 kB With provenance Details for ray_tracing_shapely_optiland-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 300.6 kB

Release files / ray_tracing_shapely_optiland-0.1.2.tar.gz

Download URL ray_tracing_shapely_optiland-0.1.2.tar.gz
Size 179.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ea8513535ea4904ad80d0602883d823c6947a779abe1dc47cebf6614b139e8d9
BLAKE2b-256 checksum
How to use checksums
95bc9f1670860680399fc02749765384218d51d0b58e217ee5c2f7da086c9ba2
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 30, 2026.

Transparency log

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

Download URL ray_tracing_shapely_optiland-0.1.2-py3-none-any.whl
Size 121.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e503e59711c6cdc7663e58977b536fd4620ac97018b7b9ad153934d249e4f199
BLAKE2b-256 checksum
How to use checksums
71223ac51709e97b1620eaa8ec0351dc5198d087219ac659006dcb38e7b9ebc9
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 30, 2026.

Transparency log

Security for ray-tracing-shapely-optiland 0.1.2

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.2.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 30, 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.2 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