ray-tracing-shapely-optiland 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ray_tracing_shapely_optiland-0.1.1/NOTICE.txt +12 -0
- ray_tracing_shapely_optiland-0.1.1/PKG-INFO +113 -0
- ray_tracing_shapely_optiland-0.1.1/README.md +82 -0
- ray_tracing_shapely_optiland-0.1.1/pyproject.toml +86 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland/__init__.py +46 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland/agentic.py +503 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland/compare.py +564 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland/compare_jobs.py +276 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland/comparison_flow.py +555 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland/events.py +125 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland/geometry.py +866 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland/irradiance.py +80 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland/nsq_db.py +284 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland/plate.py +243 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland/revolve.py +1098 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland/scene_bridge.py +846 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland/sequential_collimator.py +216 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland/slice_comparison_flow.py +272 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland/sources.py +225 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland/visualization/__init__.py +23 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland/visualization/irradiance_plot.py +141 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland/visualization/jupyter_viewer.py +201 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland/visualization/renderers.py +551 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland/visualization/snapshot.py +156 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland.egg-info/PKG-INFO +113 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland.egg-info/SOURCES.txt +75 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland.egg-info/dependency_links.txt +1 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland.egg-info/requires.txt +10 -0
- ray_tracing_shapely_optiland-0.1.1/ray_tracing_shapely_optiland.egg-info/top_level.txt +1 -0
- ray_tracing_shapely_optiland-0.1.1/setup.cfg +4 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_agentic_3d.py +209 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_compare_2d_3d.py +186 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_comparison_flow.py +275 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_end_caps_and_import.py +415 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_from_profile_pilots.py +379 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_irradiance_3d.py +104 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_jupyter_viewer.py +157 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_nsq_db.py +220 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_plate.py +282 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_rayfile_slice_3d.py +104 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_rayfile_source.py +136 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_revolve.py +339 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_revolve_asphere.py +272 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_revolve_conic_glass.py +133 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_revolve_cut_sheet.py +482 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_revolve_led_collimators.py +192 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_revolve_placement.py +336 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_revolve_sheet.py +419 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_revolve_zones_in_solids.py +172 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_scene_bridge.py +186 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_sequential_collimator.py +136 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_slice_comparison_flow.py +161 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_snapshot.py +100 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_sources_3d.py +127 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_spline_revolution.py +118 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_version.py +35 -0
- ray_tracing_shapely_optiland-0.1.1/tests/test_visualization.py +128 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
ray-tracing-shapely-optiland
|
|
2
|
+
Copyright 2026 ray-tracing-shapely authors and contributors
|
|
3
|
+
|
|
4
|
+
This product includes software developed by the ray-tracing-shapely
|
|
5
|
+
authors and contributors, licensed under the Apache License 2.0.
|
|
6
|
+
|
|
7
|
+
This distribution contains no code derived from the Ray Optics
|
|
8
|
+
Simulation project; all 48 of its source files were written for
|
|
9
|
+
this project.
|
|
10
|
+
|
|
11
|
+
The core distribution it depends on, ray-tracing-shapely, does contain
|
|
12
|
+
such code; see its own NOTICE.
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ray-tracing-shapely-optiland
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: 3D verification of ray_tracing_shapely nonimaging-optics designs via Optiland's non-sequential ray tracer -- scene assembly, notebook-embedded visualization, and ray/run persistence
|
|
5
|
+
Author: ray-tracing-shapely authors and contributors
|
|
6
|
+
Author-email: Michele Benetti <michele@tiberavon.com>
|
|
7
|
+
License-Expression: Apache-2.0
|
|
8
|
+
Project-URL: Homepage, https://github.com/tiberavon/ray-tracing-shapely-optiland
|
|
9
|
+
Project-URL: Repository, https://github.com/tiberavon/ray-tracing-shapely-optiland
|
|
10
|
+
Keywords: ray-tracing,optics,optiland,non-sequential,simulation
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Science/Research
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
19
|
+
Requires-Python: >=3.11
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: NOTICE.txt
|
|
22
|
+
Requires-Dist: ray-tracing-shapely[flows,radiometry]>=0.3.0
|
|
23
|
+
Requires-Dist: optiland>=0.6.3
|
|
24
|
+
Provides-Extra: notebook
|
|
25
|
+
Requires-Dist: trame; extra == "notebook"
|
|
26
|
+
Requires-Dist: trame-vtk; extra == "notebook"
|
|
27
|
+
Requires-Dist: trame-vuetify; extra == "notebook"
|
|
28
|
+
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
30
|
+
Dynamic: license-file
|
|
31
|
+
|
|
32
|
+
# ray-tracing-shapely-optiland
|
|
33
|
+
|
|
34
|
+
[](https://doi.org/10.5281/zenodo.24418339)
|
|
35
|
+
|
|
36
|
+
3D verification of [`ray_tracing_shapely`](https://github.com/tiberavon/ray-tracing-shapely)
|
|
37
|
+
designs with [Optiland](https://github.com/optiland/optiland)'s non-sequential ray tracer.
|
|
38
|
+
A 2D design is handed over as a `profile.json`: its outline, the role and mechanism of
|
|
39
|
+
every surface, and the light it is designed for. Here it becomes a 3D scene, is traced,
|
|
40
|
+
and comes back.
|
|
41
|
+
|
|
42
|
+
## What it does
|
|
43
|
+
|
|
44
|
+
- **Solids and sheets from a profile.**
|
|
45
|
+
- **An extruded profile** becomes a solid with polygon end caps.
|
|
46
|
+
- **A revolved profile** becomes a solid or a mirror of revolution, each surface the one
|
|
47
|
+
exact Optiland geometry it describes: planes, cones, conics (zones and azimuth cuts
|
|
48
|
+
included), and two this package adds, a spline of revolution and an even asphere of
|
|
49
|
+
revolution.
|
|
50
|
+
- **Every stored point and normal is checked** against the surface built from it.
|
|
51
|
+
- **Built solids read back** to `profile.json` (`import_from_optiland`,
|
|
52
|
+
`import_revolved_from_optiland`).
|
|
53
|
+
- **Sources.** A source specification from the profile is placed where the 2D scene had
|
|
54
|
+
it. A measured LED's rayfile is traced ray for ray (`RayfileSource`).
|
|
55
|
+
- **2D against 3D.**
|
|
56
|
+
- **`compare_2d_3d`** traces the same meridional rays in both engines and compares them
|
|
57
|
+
face by face.
|
|
58
|
+
- **`compare_slice_3d`** compares a rayfile's 2D slice with its own records traced in 3D.
|
|
59
|
+
- **Both as flows** (`Compare2D3DFlow`, `SliceCompareFlow`), from profile files alone
|
|
60
|
+
(lenses and other solids, revolved mirror sheets, a profile's rayfile source): an
|
|
61
|
+
agent starts them by name, and their 2D and 3D traces run as jobs an executor follows,
|
|
62
|
+
here or on Modal.
|
|
63
|
+
- **A third engine.** A collimator's designed faces in Optiland's sequential mode, for an
|
|
64
|
+
independent check.
|
|
65
|
+
- **What the light did.**
|
|
66
|
+
- **Event logs** cut into one record per ray, and persisted to SQLite for queries.
|
|
67
|
+
- **Irradiance maps** on a plane past the optic, plotted with their sections.
|
|
68
|
+
- **Static 3D pictures,** rendered off-screen so that they survive a saved notebook,
|
|
69
|
+
and an inline-Jupyter viewer.
|
|
70
|
+
- **Agent tools.** Read-only tools over a traced 3D scene and the 2D-against-3D comparison,
|
|
71
|
+
registered into `ray_tracing_shapely`'s tool lists, and the two comparison flows,
|
|
72
|
+
registered among the flows that can be started by name.
|
|
73
|
+
|
|
74
|
+
The components' own pages, in the `ray_tracing_shapely` repository, say what each part
|
|
75
|
+
guarantees:
|
|
76
|
+
|
|
77
|
+
- [`optiland_scene_bridge`](https://github.com/tiberavon/ray-tracing-shapely/blob/master/dev_doc/architecture/components/optiland_scene_bridge.md)
|
|
78
|
+
- [`optiland_nsq_run_registry`](https://github.com/tiberavon/ray-tracing-shapely/blob/master/dev_doc/architecture/components/optiland_nsq_run_registry.md)
|
|
79
|
+
- [`optiland_nsq_viewer`](https://github.com/tiberavon/ray-tracing-shapely/blob/master/dev_doc/architecture/components/optiland_nsq_viewer.md)
|
|
80
|
+
|
|
81
|
+
Distinct from the sibling [`optiland-sms`](https://github.com/tiberavon/optiland-sms) package,
|
|
82
|
+
an Optiland plugin that makes a profile's spline span a surface of Optiland's sequential
|
|
83
|
+
engine, which Optiland finds by entry point. This package works in the non-sequential
|
|
84
|
+
engine, and is found through `ray_tracing_shapely`'s own docs, not Optiland's.
|
|
85
|
+
|
|
86
|
+
## Install
|
|
87
|
+
|
|
88
|
+
Requires Python 3.11 or later, `ray_tracing_shapely` 0.3.0 or later and Optiland 0.6.3 or
|
|
89
|
+
later.
|
|
90
|
+
|
|
91
|
+
Not yet on PyPI. From a checkout:
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
pip install -e ".[dev]"
|
|
95
|
+
# or, for the inline-notebook viewer:
|
|
96
|
+
pip install -e ".[notebook]"
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Citing
|
|
100
|
+
|
|
101
|
+
If you use this software, please cite it, and the ray-tracing-shapely project whose designs
|
|
102
|
+
it verifies. `CITATION.cff` carries the metadata for both; GitHub formats it from the *Cite
|
|
103
|
+
this repository* link.
|
|
104
|
+
|
|
105
|
+
This project: [doi:10.5281/zenodo.24418339](https://doi.org/10.5281/zenodo.24418339). That is
|
|
106
|
+
the *concept* DOI, which always resolves to the latest release. Each release also has its own
|
|
107
|
+
DOI, to cite when a result must be pinned to the exact version it came from.
|
|
108
|
+
|
|
109
|
+
ray-tracing-shapely: [doi:10.5281/zenodo.23991020](https://doi.org/10.5281/zenodo.23991020).
|
|
110
|
+
|
|
111
|
+
## Licence
|
|
112
|
+
|
|
113
|
+
Apache-2.0. See `NOTICE.txt`.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# ray-tracing-shapely-optiland
|
|
2
|
+
|
|
3
|
+
[](https://doi.org/10.5281/zenodo.24418339)
|
|
4
|
+
|
|
5
|
+
3D verification of [`ray_tracing_shapely`](https://github.com/tiberavon/ray-tracing-shapely)
|
|
6
|
+
designs with [Optiland](https://github.com/optiland/optiland)'s non-sequential ray tracer.
|
|
7
|
+
A 2D design is handed over as a `profile.json`: its outline, the role and mechanism of
|
|
8
|
+
every surface, and the light it is designed for. Here it becomes a 3D scene, is traced,
|
|
9
|
+
and comes back.
|
|
10
|
+
|
|
11
|
+
## What it does
|
|
12
|
+
|
|
13
|
+
- **Solids and sheets from a profile.**
|
|
14
|
+
- **An extruded profile** becomes a solid with polygon end caps.
|
|
15
|
+
- **A revolved profile** becomes a solid or a mirror of revolution, each surface the one
|
|
16
|
+
exact Optiland geometry it describes: planes, cones, conics (zones and azimuth cuts
|
|
17
|
+
included), and two this package adds, a spline of revolution and an even asphere of
|
|
18
|
+
revolution.
|
|
19
|
+
- **Every stored point and normal is checked** against the surface built from it.
|
|
20
|
+
- **Built solids read back** to `profile.json` (`import_from_optiland`,
|
|
21
|
+
`import_revolved_from_optiland`).
|
|
22
|
+
- **Sources.** A source specification from the profile is placed where the 2D scene had
|
|
23
|
+
it. A measured LED's rayfile is traced ray for ray (`RayfileSource`).
|
|
24
|
+
- **2D against 3D.**
|
|
25
|
+
- **`compare_2d_3d`** traces the same meridional rays in both engines and compares them
|
|
26
|
+
face by face.
|
|
27
|
+
- **`compare_slice_3d`** compares a rayfile's 2D slice with its own records traced in 3D.
|
|
28
|
+
- **Both as flows** (`Compare2D3DFlow`, `SliceCompareFlow`), from profile files alone
|
|
29
|
+
(lenses and other solids, revolved mirror sheets, a profile's rayfile source): an
|
|
30
|
+
agent starts them by name, and their 2D and 3D traces run as jobs an executor follows,
|
|
31
|
+
here or on Modal.
|
|
32
|
+
- **A third engine.** A collimator's designed faces in Optiland's sequential mode, for an
|
|
33
|
+
independent check.
|
|
34
|
+
- **What the light did.**
|
|
35
|
+
- **Event logs** cut into one record per ray, and persisted to SQLite for queries.
|
|
36
|
+
- **Irradiance maps** on a plane past the optic, plotted with their sections.
|
|
37
|
+
- **Static 3D pictures,** rendered off-screen so that they survive a saved notebook,
|
|
38
|
+
and an inline-Jupyter viewer.
|
|
39
|
+
- **Agent tools.** Read-only tools over a traced 3D scene and the 2D-against-3D comparison,
|
|
40
|
+
registered into `ray_tracing_shapely`'s tool lists, and the two comparison flows,
|
|
41
|
+
registered among the flows that can be started by name.
|
|
42
|
+
|
|
43
|
+
The components' own pages, in the `ray_tracing_shapely` repository, say what each part
|
|
44
|
+
guarantees:
|
|
45
|
+
|
|
46
|
+
- [`optiland_scene_bridge`](https://github.com/tiberavon/ray-tracing-shapely/blob/master/dev_doc/architecture/components/optiland_scene_bridge.md)
|
|
47
|
+
- [`optiland_nsq_run_registry`](https://github.com/tiberavon/ray-tracing-shapely/blob/master/dev_doc/architecture/components/optiland_nsq_run_registry.md)
|
|
48
|
+
- [`optiland_nsq_viewer`](https://github.com/tiberavon/ray-tracing-shapely/blob/master/dev_doc/architecture/components/optiland_nsq_viewer.md)
|
|
49
|
+
|
|
50
|
+
Distinct from the sibling [`optiland-sms`](https://github.com/tiberavon/optiland-sms) package,
|
|
51
|
+
an Optiland plugin that makes a profile's spline span a surface of Optiland's sequential
|
|
52
|
+
engine, which Optiland finds by entry point. This package works in the non-sequential
|
|
53
|
+
engine, and is found through `ray_tracing_shapely`'s own docs, not Optiland's.
|
|
54
|
+
|
|
55
|
+
## Install
|
|
56
|
+
|
|
57
|
+
Requires Python 3.11 or later, `ray_tracing_shapely` 0.3.0 or later and Optiland 0.6.3 or
|
|
58
|
+
later.
|
|
59
|
+
|
|
60
|
+
Not yet on PyPI. From a checkout:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
pip install -e ".[dev]"
|
|
64
|
+
# or, for the inline-notebook viewer:
|
|
65
|
+
pip install -e ".[notebook]"
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Citing
|
|
69
|
+
|
|
70
|
+
If you use this software, please cite it, and the ray-tracing-shapely project whose designs
|
|
71
|
+
it verifies. `CITATION.cff` carries the metadata for both; GitHub formats it from the *Cite
|
|
72
|
+
this repository* link.
|
|
73
|
+
|
|
74
|
+
This project: [doi:10.5281/zenodo.24418339](https://doi.org/10.5281/zenodo.24418339). That is
|
|
75
|
+
the *concept* DOI, which always resolves to the latest release. Each release also has its own
|
|
76
|
+
DOI, to cite when a result must be pinned to the exact version it came from.
|
|
77
|
+
|
|
78
|
+
ray-tracing-shapely: [doi:10.5281/zenodo.23991020](https://doi.org/10.5281/zenodo.23991020).
|
|
79
|
+
|
|
80
|
+
## Licence
|
|
81
|
+
|
|
82
|
+
Apache-2.0. See `NOTICE.txt`.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
# >=77 for PEP 639: `license` as an SPDX string rather than a table.
|
|
3
|
+
requires = ["setuptools>=77"]
|
|
4
|
+
build-backend = "setuptools.build_meta"
|
|
5
|
+
|
|
6
|
+
[project]
|
|
7
|
+
name = "ray-tracing-shapely-optiland"
|
|
8
|
+
version = "0.1.1"
|
|
9
|
+
description = "3D verification of ray_tracing_shapely nonimaging-optics designs via Optiland's non-sequential ray tracer -- scene assembly, notebook-embedded visualization, and ray/run persistence"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
requires-python = ">=3.11"
|
|
12
|
+
license = "Apache-2.0"
|
|
13
|
+
authors = [
|
|
14
|
+
{name = "Michele Benetti", email = "michele@tiberavon.com"},
|
|
15
|
+
{name = "ray-tracing-shapely authors and contributors"},
|
|
16
|
+
]
|
|
17
|
+
keywords = ["ray-tracing", "optics", "optiland", "non-sequential", "simulation"]
|
|
18
|
+
classifiers = [
|
|
19
|
+
"Development Status :: 3 - Alpha",
|
|
20
|
+
"Intended Audience :: Science/Research",
|
|
21
|
+
"Operating System :: OS Independent",
|
|
22
|
+
"Programming Language :: Python :: 3",
|
|
23
|
+
"Programming Language :: Python :: 3.11",
|
|
24
|
+
"Programming Language :: Python :: 3.12",
|
|
25
|
+
"Programming Language :: Python :: 3.13",
|
|
26
|
+
"Topic :: Scientific/Engineering :: Physics",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
dependencies = [
|
|
30
|
+
# [radiometry] is not optional for this distribution. The scene bridge
|
|
31
|
+
# imports `optical_elements`, whose __init__ eagerly imports `units`,
|
|
32
|
+
# which imports pint. `optical_elements` sits outside core on purpose --
|
|
33
|
+
# it is in bare_core_check's NON_CORE_PREFIXES -- so the extra has to be
|
|
34
|
+
# declared by whoever needs it. Declared bare, `pip install
|
|
35
|
+
# ray-tracing-shapely-optiland` succeeded and then raised
|
|
36
|
+
# ModuleNotFoundError: No module named 'pint' on the first import.
|
|
37
|
+
# Measured: radiometry and flows suffice; eye-safety and agentic are not
|
|
38
|
+
# reached by anything this distribution imports.
|
|
39
|
+
# [flows]: the comparison flow (comparison_flow.py) runs on the core's
|
|
40
|
+
# flow machine, which needs transitions (small, pure Python). Found by
|
|
41
|
+
# declared_deps_check when the flow was added.
|
|
42
|
+
"ray-tracing-shapely[radiometry,flows]>=0.3.0",
|
|
43
|
+
# 0.6.3 is the oldest release the tests pass on. Later Optiland changed the
|
|
44
|
+
# plane intersection's signature and the self-intersection threshold;
|
|
45
|
+
# geometry.PolygonPlaneGeometry follows whichever it finds.
|
|
46
|
+
"optiland>=0.6.3",
|
|
47
|
+
]
|
|
48
|
+
|
|
49
|
+
[project.optional-dependencies]
|
|
50
|
+
notebook = [
|
|
51
|
+
# Inline Jupyter 3D interaction; see
|
|
52
|
+
# dev_doc/architecture/components/optiland_nsq_viewer.md.
|
|
53
|
+
# Not a dependency of scene assembly itself -- see that document's directional-
|
|
54
|
+
# dependency contract (optiland_scene_bridge must not import optiland_nsq_viewer).
|
|
55
|
+
"trame",
|
|
56
|
+
"trame-vtk",
|
|
57
|
+
"trame-vuetify",
|
|
58
|
+
]
|
|
59
|
+
dev = [
|
|
60
|
+
"pytest>=7.0.0",
|
|
61
|
+
]
|
|
62
|
+
|
|
63
|
+
[project.urls]
|
|
64
|
+
Homepage = "https://github.com/tiberavon/ray-tracing-shapely-optiland"
|
|
65
|
+
Repository = "https://github.com/tiberavon/ray-tracing-shapely-optiland"
|
|
66
|
+
|
|
67
|
+
[tool.setuptools]
|
|
68
|
+
package-dir = {"" = "."}
|
|
69
|
+
|
|
70
|
+
[tool.setuptools.packages.find]
|
|
71
|
+
where = ["."]
|
|
72
|
+
include = ["ray_tracing_shapely_optiland", "ray_tracing_shapely_optiland.*"]
|
|
73
|
+
|
|
74
|
+
[tool.ruff]
|
|
75
|
+
line-length = 100
|
|
76
|
+
target-version = "py311"
|
|
77
|
+
|
|
78
|
+
[tool.ruff.lint]
|
|
79
|
+
# The same blocking set as the core distribution: pyflakes finds real
|
|
80
|
+
# defects rather than style. Without this section ruff falls back to its own
|
|
81
|
+
# defaults -- 88 columns and a wider ruleset -- and this distribution would
|
|
82
|
+
# report 83 findings instead of none, which is a lint job red on arrival.
|
|
83
|
+
select = ["F"]
|
|
84
|
+
|
|
85
|
+
[tool.pytest.ini_options]
|
|
86
|
+
testpaths = ["tests"]
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Python-specific module: ray_tracing_shapely_optiland package
|
|
3
|
+
Copyright 2026 ray-tracing-shapely authors and contributors
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
you may not use this file except in compliance with the License.
|
|
7
|
+
You may obtain a copy of the License at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
See the License for the specific language governing permissions and
|
|
15
|
+
limitations under the License.
|
|
16
|
+
|
|
17
|
+
Python translation Copyright 2026 ray-tracing-shapely authors and contributors
|
|
18
|
+
|
|
19
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
20
|
+
you may not use this file except in compliance with the License.
|
|
21
|
+
You may obtain a copy of the License at
|
|
22
|
+
|
|
23
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
24
|
+
|
|
25
|
+
===============================================================================
|
|
26
|
+
ray_tracing_shapely_optiland
|
|
27
|
+
===============================================================================
|
|
28
|
+
3D verification satellite: assembles ray_tracing_shapely's 2D nonimaging-optics
|
|
29
|
+
designs into Optiland non-sequential (NSQ) scenes, visualizes them, and persists
|
|
30
|
+
their ray/run data -- everything except the entry-point-discovered SMS
|
|
31
|
+
geometry plugin itself, which lives in the separate `optiland-sms`
|
|
32
|
+
distribution. [KB7: one bridge, two directions; KC7: the batch half of it
|
|
33
|
+
never imports the viewer.]
|
|
34
|
+
|
|
35
|
+
scene_bridge.py (extruded solids), revolve.py (solids of revolution), plate.py
|
|
36
|
+
(flat polygonal plates), geometry.py (cut apertures),
|
|
37
|
+
visualization/renderers.py, visualization/jupyter_viewer.py, and nsq_db.py
|
|
38
|
+
are implemented and tested. See
|
|
39
|
+
dev_doc/architecture/components/optiland_scene_bridge.md and
|
|
40
|
+
dev_doc/architecture/components/optiland_nsq_run_registry.md for how each came to be, and
|
|
41
|
+
dev_doc/architecture/components/optiland_scene_bridge.md
|
|
42
|
+
for the one remaining open piece (a reverse, 3D-to-2D import entry point).
|
|
43
|
+
===============================================================================
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
__version__ = "0.1.1"
|