kevinconka commited on
Commit
082d84b
·
verified ·
1 Parent(s): b25ac61

Add the IEA-15-240-RWT on its monopile and on the VolturnUS-S (Apache-2.0)

Browse files
.gitattributes CHANGED
@@ -73,3 +73,5 @@ sailboat/sailboat.glb filter=lfs diff=lfs merge=lfs -text
73
  silja_serenade/silja_serenade.glb filter=lfs diff=lfs merge=lfs -text
74
  viking_glory/viking_glory.glb filter=lfs diff=lfs merge=lfs -text
75
  viking_grace/viking_grace.glb filter=lfs diff=lfs merge=lfs -text
 
 
 
73
  silja_serenade/silja_serenade.glb filter=lfs diff=lfs merge=lfs -text
74
  viking_glory/viking_glory.glb filter=lfs diff=lfs merge=lfs -text
75
  viking_grace/viking_grace.glb filter=lfs diff=lfs merge=lfs -text
76
+ iea_15_240_rwt_monopile/iea_15_240_rwt_monopile.glb filter=lfs diff=lfs merge=lfs -text
77
+ iea_15_240_rwt_volturnus/iea_15_240_rwt_volturnus.glb filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,99 +1,99 @@
1
- <h1 align="center">seascape</h1>
2
-
3
- <p align="center">
4
- <em>Synthetic maritime scenes for sensor validation.</em><br>
5
- Multi-camera rigs · EO and LWIR · exact ground truth
6
- </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
- <p align="center">
9
- <a href="https://github.com/SEA-AI/seascape/actions/workflows/ci.yml"><img src="https://github.com/SEA-AI/seascape/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
10
- <a href="LICENSE"><img src="https://img.shields.io/github/license/SEA-AI/seascape" alt="License"></a>
11
- <a href="pyproject.toml"><img src="https://img.shields.io/badge/python-3.13-blue" alt="Python 3.13"></a>
12
- <a href="https://www.blender.org/"><img src="https://img.shields.io/badge/blender-5.2%20LTS-orange" alt="Blender 5.2 LTS"></a>
13
- </p>
14
 
15
- <p align="center">
16
- <img src="docs/hero.jpg" alt="A ship and a buoy under three skies, EO above LWIR, with their ground truth drawn on">
17
- </p>
18
 
19
- Real footage can't put a vessel at exactly 7 NM, hold the visibility constant, or show you the same ship from eight aspects. `seascape` renders maritime scenes where you choose all of that, and tells you exactly where everything was.
20
 
21
- ## Highlights
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
- - **Ground truth by construction.** Camera extrinsics and intrinsics are known rather than estimated. Every frame comes with each target's box, range and bearing, and the horizon. In an 8-bit frame, a target too faint to tell from its surroundings gets no box ([outputs](docs/outputs.md)).
24
- - **LWIR as well as EO.** Measured seawater optical constants, a skin and foam that radiate differently from the bulk, a band-integrated sky whose clouds reflect in the sea, hulls whose parts each settle at their own heat balance, and a microbolometer model ([primer](docs/primer/README.md)).
25
- - **Multi-sensor rigs.** Several cameras, each with its own resolution, optics and band, in one scene.
26
- - **Sequences.** Targets under way, ownship roll, pitch and heave, seamless loops, mp4.
27
 
28
- > [!NOTE]
29
- > LWIR is good enough to look at and to regression-test against, but not a radiometric reference: shadowing between unresolved wave facets is not modelled, and the sea mirrors no hulls. A detection-range or contrast figure taken off a render needs review before anyone acts on it.
30
 
31
- ## Install
32
 
33
  ```bash
34
- git clone https://github.com/SEA-AI/seascape.git
35
- cd seascape
36
- uv sync
37
  ```
38
 
39
- Blender ships as a Python package, so there is nothing else to install.
40
-
41
- ## Quickstart
 
42
 
43
  ```bash
44
- uv run seascape render scenarios/baseline.toml -o out/
45
- ```
46
-
47
- ```text
48
- out/
49
- ├── bow_eo.jpg
50
- ├── bow_ir.jpg
51
- ├── calibration.json
52
- ├── labels.json
53
- └── blender.log
54
  ```
55
 
56
- `seascape build` writes the `.blend` instead, to open in Blender.
57
-
58
- A scenario is a TOML file, and `extends` makes a variant a diff:
59
 
60
- ```toml
61
- extends = "baseline.toml"
62
 
63
- [sky]
64
- hdri = "belfast_sunset"
65
-
66
- [[objects]]
67
- asset = "lateral_mark"
68
- range_m = 100.0
69
- bearing_deg = -6.0
70
- ```
71
-
72
- <details>
73
- <summary>Tab completion</summary>
74
 
75
- With `seascape` on the `PATH`, add to `~/.zshrc`:
76
 
77
- ```bash
78
- eval "$(_SEASCAPE_COMPLETE=zsh_source seascape)"
 
79
  ```
80
 
81
- For bash, `bash_source` in `~/.bashrc`.
82
-
83
- </details>
84
-
85
- ## Documentation
86
-
87
- | | |
88
- |---|---|
89
- | [How seascape works](docs/primer/) | a tour for anyone new to Blender: rendering, HDR, EO and LWIR, the sea, limitations |
90
- | [Scenarios](docs/scenarios.md) | `--set`, `extends`, skies, sequences |
91
- | [Outputs](docs/outputs.md) | labels, LWIR radiometry, montage, panorama |
92
- | [Assets](docs/assets.md) | the meshes, where they come from, adding one |
93
- | [Render server](docs/render-server.md) | render from Claude, on a shared GPU |
94
- | [Blender MCP](docs/blender-mcp.md) | an AI agent in the open Blender scene |
95
- | [Contributing](CONTRIBUTING.md) | checks, render tests, conventions |
96
 
97
- ## Licence
98
 
99
- Apache-2.0, copyright SEA.AI GmbH. Meshes and skies carry their own licences, in `seascape/assets.toml` and `seascape/skies.toml`; some require attribution, which travels with any released dataset. `seascape/data/water_nk.csv` is CC BY 4.0, from [Nalli et al. 2022](https://doi.org/10.6084/m9.figshare.19341533).
 
1
+ ---
2
+ pretty_name: SeaShapes
3
+ license:
4
+ - cc-by-4.0
5
+ - apache-2.0
6
+ tags:
7
+ - 3d
8
+ - glb
9
+ - maritime
10
+ - ships
11
+ - synthetic-data
12
+ size_categories:
13
+ - n<1K
14
+ configs:
15
+ - config_name: default
16
+ data_files:
17
+ - "*/preview.png"
18
+ - metadata.jsonl
19
+ ---
20
+
21
+ # SeaShapes
22
+
23
+ 3D models of maritime objects, each with its real-world size and its source. One folder per asset, holding the model and a preview. `metadata.jsonl` describes every asset, one row each, and `schema.json` defines the fields.
24
+
25
+ ## Query
26
+
27
+ In the Data Studio SQL console, or anywhere DuckDB runs:
28
+
29
+ ```sql
30
+ SELECT id, category, length_m, width_m, licence
31
+ FROM 'hf://datasets/SEA-AI/seashapes/metadata.jsonl'
32
+ WHERE list_contains(tags, 'containers') AND length_m BETWEEN 80 AND 100;
33
+ ```
34
 
35
+ Pin a file by commit, never by branch:
 
 
 
 
 
36
 
37
+ ```
38
+ https://huggingface.co/datasets/SEA-AI/seashapes/resolve/<commit>/<id>/<id>.glb
39
+ ```
40
 
41
+ ## Fields
42
 
43
+ | Field | Meaning |
44
+ |---|---|
45
+ | `id` | Folder name |
46
+ | `file_name` | Preview image, `<id>/preview.png` |
47
+ | `title`, `author`, `source_url`, `licence` | Attribution; `licence` is an SPDX identifier |
48
+ | `category`, `tags`, `description` | What the object is; `tags` are free filters |
49
+ | `length_m`, `width_m`, `height_m` | Real overall size, keel to top for a vessel |
50
+ | `size_source` | How the real size is known; model units are arbitrary |
51
+ | `file`, `format`, `size_bytes`, `sha256` | The file |
52
+ | `front_axis` | Where the front points in the file; omitted when it is glTF's `+z` |
53
+ | `triangles`, `textures`, `texture_max_px` | Mesh detail |
54
+ | `modified` | Whether the file differs from what the source offers |
55
+ | `added` | Date added |
56
 
57
+ `schema.json` is the authority; a row that fails it is not added.
 
 
 
58
 
59
+ ## Adding an asset
 
60
 
61
+ No clone needed: fetch the small files, add the asset, upload only what changed.
62
 
63
  ```bash
64
+ hf download SEA-AI/seashapes --repo-type dataset --local-dir seashapes --exclude "*.glb" --exclude "*.png"
65
+ cd seashapes
 
66
  ```
67
 
68
+ 1. Put the model at `<id>/<id>.glb` and append its row to `metadata.jsonl`. Leave `sha256` and `size_bytes` out; the check fills them in.
69
+ 2. Render its preview: `uv run tools/preview.py <id>`.
70
+ 3. Check every row: `uv run tools/validate.py`. Rows whose folder is here are checked against their files, the rest against `schema.json`.
71
+ 4. Upload in one commit:
72
 
73
  ```bash
74
+ hf upload SEA-AI/seashapes . . --repo-type dataset --include "<id>/*" --include metadata.jsonl --commit-message "Add <id>"
 
 
 
 
 
 
 
 
 
75
  ```
76
 
77
+ Pin the new commit, never `main`, wherever the asset is used.
 
 
78
 
79
+ ## Licences
 
80
 
81
+ | Files | Licence |
82
+ |---|---|
83
+ | `<id>/<id>.glb` | The author's, given per row in `metadata.jsonl`; an Apache-2.0 model has its licence text beside it, `<id>/LICENSE` |
84
+ | `<id>/preview.png` | The model's licence and attribution; each is a render of the model, modified: rendered by SEA.AI |
85
+ | `metadata.jsonl`, `schema.json`, `README.md` | CC BY 4.0, SEA.AI |
86
+ | `tools/` | Apache-2.0, SEA.AI |
 
 
 
 
 
87
 
88
+ Credit the author and link the source when you share a model or work made from it. Every row of `metadata.jsonl` carries its `title`, `author`, `source_url` and `licence`, and models from Sketchfab embed the same in their glTF `asset.extras`:
89
 
90
+ ```sql
91
+ SELECT title, author, source_url, licence
92
+ FROM 'hf://datasets/SEA-AI/seashapes/metadata.jsonl';
93
  ```
94
 
95
+ Models from Sketchfab are the GLBs it offers for download, unmodified. Their authors do not endorse SEA.AI or this dataset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
 
97
+ All files are provided as is, without warranties of any kind, to the extent the law allows; see each licence.
98
 
99
+ Licensing reviewed 2026-10-27.
iea_15_240_rwt_monopile/LICENSE ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
iea_15_240_rwt_monopile/iea_15_240_rwt_monopile.glb ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd0495eebce78044163b875c490112b2cc29c15c39a71028ec0513602ae415af
3
+ size 2227768
iea_15_240_rwt_monopile/preview.png ADDED

Git LFS Details

  • SHA256: 1527c0bbe607bf407f59da60b517e38cd76575a35715db458fa037af0abf42d3
  • Pointer size: 130 Bytes
  • Size of remote file: 27.2 kB
iea_15_240_rwt_volturnus/LICENSE ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
iea_15_240_rwt_volturnus/iea_15_240_rwt_volturnus.glb ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27e98df726e00e9599d41744e8f80e2d1ba2f66e681268f21e5c808ddb7e7ac2
3
+ size 1296284
iea_15_240_rwt_volturnus/preview.png ADDED

Git LFS Details

  • SHA256: dfdcb62902b9e2f975be9976cc00d7f12332be2578ee6bb87b4f7c4f2134f174
  • Pointer size: 130 Bytes
  • Size of remote file: 37.2 kB
metadata.jsonl CHANGED
@@ -13,3 +13,5 @@
13
  {"id": "mariella", "file_name": "mariella/preview.png", "title": "Viking Line M/S Mariella (1985) (2015)", "category": "passenger ferry", "tags": ["vessel", "ferry", "ropax", "cruise-ferry", "real-ship"], "description": "Cruise ferry Mariella (IMO 8320573) in her 2015 Viking Line red and white, helideck aft.", "length_m": 175.7, "width_m": 32.9, "height_m": 49.0, "size_source": "Mariella, IMO 8320573, 175.70 m overall (DNV register, cited by Wikipedia \"MS Mega Regina\"); the mesh is then 27.6 m across at the waterline against her 28.40 m", "triangles": 53836, "source_url": "https://sketchfab.com/3d-models/3e81f235774046dabc681122bb24cea2", "file": "mariella/mariella.glb", "format": "glb", "textures": 6, "texture_max_px": 1024, "author": "FHA_studios", "licence": "CC-BY-4.0", "modified": false, "added": "2026-10-26", "front_axis": "+x", "sha256": "ae030315ed6f603c282c8a991398ec4072e0f3e567b2a462ac7fca977333df4e", "size_bytes": 2585416}
14
  {"id": "pride_of_kent", "file_name": "pride_of_kent/preview.png", "title": "PRIDE OF KENT (P&O Ferries)", "category": "passenger ferry", "tags": ["vessel", "ferry", "ropax", "real-ship"], "description": "Ro-pax ferry Pride of Kent (IMO 9015266) in P&O Ferries white and navy, bridge forward.", "length_m": 179.7, "width_m": 36.2, "height_m": 55.2, "size_source": "Pride of Kent, IMO 9015266, 179.70 m overall (Wikipedia, \"MS Pride of Kent\"); the mesh is then 28.2 m across at the waterline against her 28.30 m", "triangles": 868045, "source_url": "https://sketchfab.com/3d-models/f7c269fbb81e4072b72e28b085e52c7e", "file": "pride_of_kent/pride_of_kent.glb", "format": "glb", "textures": 14, "texture_max_px": 8192, "author": "iPierre", "licence": "CC-BY-4.0", "modified": false, "added": "2026-10-26", "front_axis": "-z", "sha256": "c0ad0aead3ae7e06876451fccefcc0b6e18abbf8c7cf934c10c0847ae216777e", "size_bytes": 60043296}
15
  {"id": "meriluoto", "file_name": "meriluoto/preview.png", "title": "Hailuoto car ferry L/A Meriluoto", "category": "passenger ferry", "tags": ["vessel", "ferry", "road-ferry", "double-ended", "open-car-deck", "real-ship"], "description": "Double-ended Finnish road ferry Meriluoto, yellow superstructure over an open car deck, wheelhouse amidships.", "length_m": 53.5, "width_m": 12.3, "height_m": 23.6, "size_source": "Native units are metres: 53.5 m overall and 12.3 m breadth, as Finferries lists for L/A Meriluoto", "triangles": 81208, "source_url": "https://sketchfab.com/3d-models/44eaf2dd56b74e76a310d2e532957dbe", "file": "meriluoto/meriluoto.glb", "format": "glb", "textures": 8, "texture_max_px": 4096, "author": "Snowsoup", "licence": "CC-BY-4.0", "modified": false, "added": "2026-10-26", "front_axis": "+x", "sha256": "de0ad473106ac3631ccc1fb00d3bf8979d6def08bd9d6ca98ff21025741e5eb3", "size_bytes": 8146460}
 
 
 
13
  {"id": "mariella", "file_name": "mariella/preview.png", "title": "Viking Line M/S Mariella (1985) (2015)", "category": "passenger ferry", "tags": ["vessel", "ferry", "ropax", "cruise-ferry", "real-ship"], "description": "Cruise ferry Mariella (IMO 8320573) in her 2015 Viking Line red and white, helideck aft.", "length_m": 175.7, "width_m": 32.9, "height_m": 49.0, "size_source": "Mariella, IMO 8320573, 175.70 m overall (DNV register, cited by Wikipedia \"MS Mega Regina\"); the mesh is then 27.6 m across at the waterline against her 28.40 m", "triangles": 53836, "source_url": "https://sketchfab.com/3d-models/3e81f235774046dabc681122bb24cea2", "file": "mariella/mariella.glb", "format": "glb", "textures": 6, "texture_max_px": 1024, "author": "FHA_studios", "licence": "CC-BY-4.0", "modified": false, "added": "2026-10-26", "front_axis": "+x", "sha256": "ae030315ed6f603c282c8a991398ec4072e0f3e567b2a462ac7fca977333df4e", "size_bytes": 2585416}
14
  {"id": "pride_of_kent", "file_name": "pride_of_kent/preview.png", "title": "PRIDE OF KENT (P&O Ferries)", "category": "passenger ferry", "tags": ["vessel", "ferry", "ropax", "real-ship"], "description": "Ro-pax ferry Pride of Kent (IMO 9015266) in P&O Ferries white and navy, bridge forward.", "length_m": 179.7, "width_m": 36.2, "height_m": 55.2, "size_source": "Pride of Kent, IMO 9015266, 179.70 m overall (Wikipedia, \"MS Pride of Kent\"); the mesh is then 28.2 m across at the waterline against her 28.30 m", "triangles": 868045, "source_url": "https://sketchfab.com/3d-models/f7c269fbb81e4072b72e28b085e52c7e", "file": "pride_of_kent/pride_of_kent.glb", "format": "glb", "textures": 14, "texture_max_px": 8192, "author": "iPierre", "licence": "CC-BY-4.0", "modified": false, "added": "2026-10-26", "front_axis": "-z", "sha256": "c0ad0aead3ae7e06876451fccefcc0b6e18abbf8c7cf934c10c0847ae216777e", "size_bytes": 60043296}
15
  {"id": "meriluoto", "file_name": "meriluoto/preview.png", "title": "Hailuoto car ferry L/A Meriluoto", "category": "passenger ferry", "tags": ["vessel", "ferry", "road-ferry", "double-ended", "open-car-deck", "real-ship"], "description": "Double-ended Finnish road ferry Meriluoto, yellow superstructure over an open car deck, wheelhouse amidships.", "length_m": 53.5, "width_m": 12.3, "height_m": 23.6, "size_source": "Native units are metres: 53.5 m overall and 12.3 m breadth, as Finferries lists for L/A Meriluoto", "triangles": 81208, "source_url": "https://sketchfab.com/3d-models/44eaf2dd56b74e76a310d2e532957dbe", "file": "meriluoto/meriluoto.glb", "format": "glb", "textures": 8, "texture_max_px": 4096, "author": "Snowsoup", "licence": "CC-BY-4.0", "modified": false, "added": "2026-10-26", "front_axis": "+x", "sha256": "de0ad473106ac3631ccc1fb00d3bf8979d6def08bd9d6ca98ff21025741e5eb3", "size_bytes": 8146460}
16
+ {"id": "iea_15_240_rwt_monopile", "file_name": "iea_15_240_rwt_monopile/preview.png", "title": "IEA Wind 15-MW Offshore Reference Wind Turbine, monopile", "category": "wind turbine", "tags": ["structure", "offshore-wind", "monopile", "reference-design"], "description": "IEA 15 MW reference turbine on its monopile, light grey with a yellow transition piece; the rotor turns about the node iea_15_240_rwt_monopile_rotor.", "length_m": 22.0, "width_m": 240.0, "height_m": 298.16, "size_source": "Native units are metres, mean sea level at z = 0: the IEA 15 MW's 240 m rotor and 150 m hub (Gaertner et al., NREL/TP-5000-75698, 2020); the monopile carries on to its 30 m design seabed", "triangles": 118580, "source_url": "https://github.com/IEAWindTask37/IEA-15-240-RWT/tree/28ae083f6e4d2e2e4ea35ac9100fcab104940484/CAD/OpenSCAD", "file": "iea_15_240_rwt_monopile/iea_15_240_rwt_monopile.glb", "format": "glb", "front_axis": "-z", "textures": 0, "author": "IEA Wind TCP Task 37", "licence": "Apache-2.0", "modified": true, "added": "2026-10-27", "sha256": "bd0495eebce78044163b875c490112b2cc29c15c39a71028ec0513602ae415af", "size_bytes": 2227768}
17
+ {"id": "iea_15_240_rwt_volturnus", "file_name": "iea_15_240_rwt_volturnus/preview.png", "title": "IEA Wind 15-MW Offshore Reference Wind Turbine on the UMaine VolturnUS-S", "category": "wind turbine", "tags": ["structure", "offshore-wind", "floating", "semi-submersible", "reference-design"], "description": "IEA 15 MW reference turbine on the VolturnUS-S three-column semi-submersible, light grey over a yellow hull; the rotor turns about the node iea_15_240_rwt_volturnus_rotor.", "length_m": 90.1, "width_m": 240.0, "height_m": 289.46, "size_source": "Native units are metres, mean sea level at z = 0: the IEA 15 MW's 240 m rotor (Gaertner et al., NREL/TP-5000-75698, 2020) on the VolturnUS-S (Allen et al., NREL/TP-5000-76773, 2020)", "triangles": 67374, "source_url": "https://github.com/IEAWindTask37/IEA-15-240-RWT/tree/28ae083f6e4d2e2e4ea35ac9100fcab104940484/CAD/OpenSCAD", "file": "iea_15_240_rwt_volturnus/iea_15_240_rwt_volturnus.glb", "format": "glb", "front_axis": "-z", "textures": 0, "author": "IEA Wind TCP Task 37", "licence": "Apache-2.0", "modified": true, "added": "2026-10-27", "sha256": "27e98df726e00e9599d41744e8f80e2d1ba2f66e681268f21e5c808ddb7e7ac2", "size_bytes": 1296284}
schema.json CHANGED
@@ -142,7 +142,8 @@
142
  "enum": [
143
  "CC0-1.0",
144
  "CC-BY-3.0",
145
- "CC-BY-4.0"
 
146
  ],
147
  "description": "SPDX identifier."
148
  },
 
142
  "enum": [
143
  "CC0-1.0",
144
  "CC-BY-3.0",
145
+ "CC-BY-4.0",
146
+ "Apache-2.0"
147
  ],
148
  "description": "SPDX identifier."
149
  },
tools/iea15.py ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+ # /// script
3
+ # requires-python = "==3.13.*"
4
+ # dependencies = ["bpy>=5.2", "numpy"]
5
+ # ///
6
+ """IEA-15-240-RWT OpenSCAD STL to a GLB whose rotor turns about its shaft.
7
+
8
+ uv run tools/iea15.py IEA-15-240-RWT.stl iea_15_240_rwt_monopile/iea_15_240_rwt_monopile.glb iea_15_240_rwt_monopile
9
+
10
+ The STLs are CAD/OpenSCAD in github.com/IEAWindTask37/IEA-15-240-RWT.
11
+
12
+ - Parts are the STL's loose parts: structure (monopile or floater with tower),
13
+ nacelle, hub and three blades.
14
+ - Rotor: hub and blades under an empty `<id>_rotor` at the hub, its local +Y the
15
+ shaft pointing upwind, normal to the plane of the blade tips.
16
+ - The rotor faces glTF -Z (Blender +Y).
17
+ - Paint: RAL 7035 light grey; RAL 1023 traffic yellow below +15 m, the transition
18
+ piece or the platform's freeboard (IALA O-139: yellow from HAT to 15 m).
19
+ - A monopile goes on to the IEA design's 30 m seabed (Gaertner et al. 2020).
20
+ """
21
+
22
+ import math
23
+ import sys
24
+
25
+ import bpy
26
+ import numpy as np
27
+ from mathutils import Matrix, Vector
28
+
29
+ src, out, name = sys.argv[-3:]
30
+ bpy.ops.wm.read_factory_settings(use_empty=True)
31
+ bpy.ops.wm.stl_import(filepath=src)
32
+ whole = bpy.context.selected_objects[0]
33
+ bpy.context.view_layer.objects.active = whole
34
+ bpy.ops.object.mode_set(mode="EDIT")
35
+ bpy.ops.mesh.select_all(action="SELECT")
36
+ bpy.ops.mesh.separate(type="LOOSE")
37
+ bpy.ops.object.mode_set(mode="OBJECT")
38
+
39
+
40
+ def co(o):
41
+ return np.array([v.co[:] for v in o.data.vertices])
42
+
43
+
44
+ parts = list(bpy.context.scene.objects)
45
+ structure = min(parts, key=lambda o: co(o)[:, 2].min()) # reaches lowest
46
+ nacelle = min(parts, key=lambda o: len(o.data.polygons)) # a 12-triangle box
47
+ rest = [o for o in parts if o not in (structure, nacelle)]
48
+ hub = min(rest, key=lambda o: np.ptp(co(o), axis=0).max())
49
+ blades = [o for o in rest if o is not hub]
50
+ assert len(blades) == 3, len(blades)
51
+
52
+ # The hub is a body of revolution: its vertices centre on the shaft.
53
+ centre = Vector(co(hub).mean(axis=0))
54
+ tips = []
55
+ for b in blades:
56
+ c = co(b)
57
+ tips.append(c[np.argmax(np.linalg.norm(c - np.array(centre), axis=1))])
58
+ normal = Vector(np.cross(tips[1] - tips[0], tips[2] - tips[0])).normalized()
59
+ if normal.x < 0: # the rotor is upwind of the tower, at +x
60
+ normal = -normal
61
+
62
+ # A monopile from the seabed to its STL, which starts at MSL.
63
+ if co(structure)[:, 2].min() >= 0.0:
64
+ radius = np.ptp(co(structure)[co(structure)[:, 2] < 1.0][:, :2], axis=0).max() / 2
65
+ bpy.ops.mesh.primitive_cylinder_add(
66
+ vertices=64, radius=radius, depth=30.0, location=(0.0, 0.0, -15.0)
67
+ )
68
+ pile = bpy.context.active_object
69
+ with bpy.context.temp_override(
70
+ active_object=structure, selected_editable_objects=[structure, pile]
71
+ ):
72
+ bpy.ops.object.join()
73
+
74
+
75
+ def paint(label, srgb, roughness=0.5):
76
+ m = bpy.data.materials.new(label)
77
+ m.use_nodes = True
78
+ bsdf = m.node_tree.nodes["Principled BSDF"]
79
+ lin = [((c / 255 + 0.055) / 1.055) ** 2.4 for c in srgb]
80
+ bsdf.inputs["Base Color"].default_value = (*lin, 1.0)
81
+ bsdf.inputs["Roughness"].default_value = roughness
82
+ return m
83
+
84
+
85
+ # RAL 7035 and 1023 in sRGB (RAL's published sRGB approximations).
86
+ grey = (203, 208, 204)
87
+ paints = {
88
+ "tower": paint("tower", grey),
89
+ "foundation": paint("foundation", (247, 181, 0)),
90
+ "nacelle": paint("nacelle", grey),
91
+ "hub": paint("hub", grey),
92
+ "blade": paint("blade", grey),
93
+ }
94
+ structure.data.materials.append(paints["tower"])
95
+ structure.data.materials.append(paints["foundation"])
96
+ for f in structure.data.polygons:
97
+ f.material_index = int(f.center.z < 15.0)
98
+ for o, label in [(nacelle, "nacelle"), (hub, "hub"), *[(b, "blade") for b in blades]]:
99
+ o.data.materials.append(paints[label])
100
+ for o in [structure, nacelle, hub, *blades]:
101
+ o.data.shade_smooth()
102
+ o.data.set_sharp_from_angle(angle=math.radians(30))
103
+
104
+ # Rotor faces +x as drawn; turn it to +y.
105
+ turn = Matrix.Rotation(math.radians(90), 4, "Z")
106
+ root = bpy.data.objects.new(name, None)
107
+ rotor = bpy.data.objects.new(f"{name}_rotor", None)
108
+ for o in (root, rotor):
109
+ bpy.context.scene.collection.objects.link(o)
110
+ # The rotor empty's +Y along the shaft, +Z as close to up as the tilt allows.
111
+ y = normal
112
+ x = y.cross(Vector((0, 0, 1))).normalized()
113
+ z = x.cross(y)
114
+ frame = Matrix((x, y, z)).transposed().to_4x4()
115
+ frame.translation = centre
116
+ rotor.matrix_world = turn @ frame
117
+ rotor.parent = root
118
+ for o, label in [(structure, "structure"), (nacelle, "nacelle"), (hub, "hub")]:
119
+ o.name = o.data.name = f"{name}_{label}"
120
+ for i, b in enumerate(blades):
121
+ b.name = b.data.name = f"{name}_blade_{i}"
122
+ for o in [structure, nacelle, hub, *blades]:
123
+ o.data.transform(turn)
124
+ o.matrix_world = Matrix()
125
+ for o in [structure, nacelle]:
126
+ o.parent = root
127
+ for o in [hub, *blades]:
128
+ o.parent = rotor
129
+ o.matrix_parent_inverse = rotor.matrix_world.inverted()
130
+ bpy.context.view_layer.update()
131
+ tilt = math.degrees(math.asin(normal.z))
132
+ print(f"hub {tuple(round(c, 3) for c in centre)} tilt {tilt:.2f} deg")
133
+ print("tris", sum(len(o.data.polygons) for o in bpy.data.objects if o.type == "MESH"))
134
+ bpy.ops.export_scene.gltf(filepath=out, export_format="GLB", export_apply=True)