Skip to content

Commit 4af4315

Browse files
authored
Merge pull request #242 from andyross/vis-defaults
Update visual defaults
2 parents 7549c25 + 83bc4c7 commit 4af4315

File tree

13 files changed

+204
-138
lines changed

13 files changed

+204
-138
lines changed

.generatelicensefile.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"append": [
33
"assets/fox.glb.license",
4+
"assets/qwantani_afternoon_1k.hdr.license",
45
"LICENSE"
56
],
67
"replace": {

assets/licenses.txt

Lines changed: 64 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ https://www.npmjs.com/package/generate-license-file
33

44
The following npm package may be included in this product:
55

6-
- @google/model-viewer@4.0.0
6+
- @google/model-viewer@4.1.0
77

88
This package contains the following license:
99

@@ -522,7 +522,7 @@ Apache License
522522

523523
The following npm package may be included in this product:
524524

525-
- detect-libc@2.0.3
525+
- detect-libc@2.0.4
526526

527527
This package contains the following license:
528528

@@ -1045,9 +1045,9 @@ END OF TERMS AND CONDITIONS
10451045

10461046
The following npm packages may be included in this product:
10471047

1048-
- @lit/reactive-element@1.6.3
1049-
- lit-element@3.3.3
1050-
- lit@2.8.0
1048+
- @lit/reactive-element@2.1.1
1049+
- lit-element@4.2.1
1050+
- lit@3.3.1
10511051

10521052
These packages each contain the following license:
10531053

@@ -1084,7 +1084,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
10841084

10851085
The following npm package may be included in this product:
10861086

1087-
- lit-html@2.8.0
1087+
- lit-html@3.3.1
10881088

10891089
This package contains the following license:
10901090

@@ -1121,7 +1121,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
11211121

11221122
The following npm package may be included in this product:
11231123

1124-
- @lit-labs/ssr-dom-shim@1.3.0
1124+
- @lit-labs/ssr-dom-shim@1.4.0
11251125

11261126
This package contains the following license:
11271127

@@ -1247,7 +1247,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12471247

12481248
The following npm package may be included in this product:
12491249

1250-
- @babel/parser@7.27.0
1250+
- @babel/parser@7.28.0
12511251

12521252
This package contains the following license:
12531253

@@ -1381,6 +1381,34 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
13811381

13821382
-----------
13831383

1384+
The following npm package may be included in this product:
1385+
1386+
- @jridgewell/sourcemap-codec@1.5.4
1387+
1388+
This package contains the following license:
1389+
1390+
Copyright 2024 Justin Ridgewell <justin@ridgewell.name>
1391+
1392+
Permission is hereby granted, free of charge, to any person obtaining a copy
1393+
of this software and associated documentation files (the "Software"), to deal
1394+
in the Software without restriction, including without limitation the rights
1395+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1396+
copies of the Software, and to permit persons to whom the Software is
1397+
furnished to do so, subject to the following conditions:
1398+
1399+
The above copyright notice and this permission notice shall be included in
1400+
all copies or substantial portions of the Software.
1401+
1402+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1403+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1404+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1405+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1406+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1407+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1408+
SOFTWARE.
1409+
1410+
-----------
1411+
13841412
The following npm package may be included in this product:
13851413

13861414
- picocolors@1.1.1
@@ -1418,9 +1446,9 @@ LGPL-3.0-or-later
14181446

14191447
The following npm packages may be included in this product:
14201448

1421-
- @babel/helper-string-parser@7.25.9
1422-
- @babel/helper-validator-identifier@7.25.9
1423-
- @babel/types@7.27.0
1449+
- @babel/helper-string-parser@7.27.1
1450+
- @babel/helper-validator-identifier@7.27.1
1451+
- @babel/types@7.28.1
14241452

14251453
These packages each contain the following license:
14261454

@@ -1451,7 +1479,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14511479

14521480
The following npm package may be included in this product:
14531481

1454-
- three-mesh-bvh@0.9.0
1482+
- three-mesh-bvh@0.9.1
14551483

14561484
This package contains the following license:
14571485

@@ -1601,7 +1629,7 @@ The MIT license applies to all non-font and non-icon files.
16011629

16021630
The following npm package may be included in this product:
16031631

1604-
- semver@7.7.1
1632+
- semver@7.7.2
16051633

16061634
This package contains the following license:
16071635

@@ -1623,36 +1651,6 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16231651

16241652
-----------
16251653

1626-
The following npm package may be included in this product:
1627-
1628-
- @jridgewell/sourcemap-codec@1.5.0
1629-
1630-
This package contains the following license:
1631-
1632-
The MIT License
1633-
1634-
Copyright (c) 2015 Rich Harris
1635-
1636-
Permission is hereby granted, free of charge, to any person obtaining a copy
1637-
of this software and associated documentation files (the "Software"), to deal
1638-
in the Software without restriction, including without limitation the rights
1639-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1640-
copies of the Software, and to permit persons to whom the Software is
1641-
furnished to do so, subject to the following conditions:
1642-
1643-
The above copyright notice and this permission notice shall be included in
1644-
all copies or substantial portions of the Software.
1645-
1646-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1647-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1648-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1649-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1650-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1651-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1652-
THE SOFTWARE.
1653-
1654-
-----------
1655-
16561654
The following npm package may be included in this product:
16571655

16581656
- three@0.125.2
@@ -1685,7 +1683,7 @@ THE SOFTWARE.
16851683

16861684
The following npm package may be included in this product:
16871685

1688-
- three@0.175.0
1686+
- three@0.178.0
16891687

16901688
This package contains the following license:
16911689

@@ -1775,13 +1773,13 @@ THE SOFTWARE.
17751773

17761774
The following npm package may be included in this product:
17771775

1778-
- vuetify@3.8.0
1776+
- vuetify@3.9.0
17791777

17801778
This package contains the following license:
17811779

17821780
The MIT License (MIT)
17831781

1784-
Copyright (c) 2016-2023 John Jeremy Leider
1782+
Copyright (c) 2016-now Vuetify, LLC
17851783

17861784
Permission is hereby granted, free of charge, to any person obtaining a copy
17871785
of this software and associated documentation files (the "Software"), to deal
@@ -1805,16 +1803,16 @@ THE SOFTWARE.
18051803

18061804
The following npm packages may be included in this product:
18071805

1808-
- @vue/compiler-core@3.5.13
1809-
- @vue/compiler-dom@3.5.13
1810-
- @vue/compiler-sfc@3.5.13
1811-
- @vue/compiler-ssr@3.5.13
1812-
- @vue/reactivity@3.5.13
1813-
- @vue/runtime-core@3.5.13
1814-
- @vue/runtime-dom@3.5.13
1815-
- @vue/server-renderer@3.5.13
1816-
- @vue/shared@3.5.13
1817-
- vue@3.5.13
1806+
- @vue/compiler-core@3.5.17
1807+
- @vue/compiler-dom@3.5.17
1808+
- @vue/compiler-sfc@3.5.17
1809+
- @vue/compiler-ssr@3.5.17
1810+
- @vue/reactivity@3.5.17
1811+
- @vue/runtime-core@3.5.17
1812+
- @vue/runtime-dom@3.5.17
1813+
- @vue/server-renderer@3.5.17
1814+
- @vue/shared@3.5.17
1815+
- vue@3.5.17
18181816

18191817
These packages each contain the following license:
18201818

@@ -1844,7 +1842,7 @@ THE SOFTWARE.
18441842

18451843
The following npm package may be included in this product:
18461844

1847-
- ktx-parse@1.0.0
1845+
- ktx-parse@1.0.1
18481846

18491847
This package contains the following license:
18501848

@@ -1906,9 +1904,9 @@ SOFTWARE.
19061904

19071905
The following npm packages may be included in this product:
19081906

1909-
- @gltf-transform/core@4.1.3
1910-
- @gltf-transform/extensions@4.1.3
1911-
- @gltf-transform/functions@4.1.3
1907+
- @gltf-transform/core@4.2.0
1908+
- @gltf-transform/extensions@4.2.0
1909+
- @gltf-transform/functions@4.2.0
19121910

19131911
These packages each contain the following license:
19141912

@@ -1968,7 +1966,7 @@ THE SOFTWARE.
19681966

19691967
The following npm package may be included in this product:
19701968

1971-
- postcss@8.5.3
1969+
- postcss@8.5.6
19721970

19731971
This package contains the following license:
19741972

@@ -2049,6 +2047,11 @@ glTF conversion by @AsoboStudio and @scurest
20492047

20502048
-----------
20512049

2050+
CC0: Qwantani Afternoon by Greg Zaal (Photography) and Jarod Guest (Processing)
2051+
https://polyhaven.com/a/qwantani_afternoon
2052+
2053+
-----------
2054+
20522055
MIT License
20532056

20542057
Copyright (c) 2024 Yeicor

assets/qwantani_afternoon_1k.hdr

1.38 MB
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CC0: Qwantani Afternoon by Greg Zaal (Photography) and Jarod Guest (Processing)
2+
https://polyhaven.com/a/qwantani_afternoon

frontend/misc/settings.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,14 @@ export async function settings() {
2929
panSensitivity: 1,
3030
exposure: 1,
3131
shadowIntensity: 0,
32-
background: '',
32+
// Nice low-res outdoor/high-contrast HDRI image (CC0 licensed) for lighting
33+
background: new URL('../../assets/qwantani_afternoon_1k.hdr', import.meta.url).href,
34+
// Uniform (1x1 pixel) medium gray background for visibility (following dark/light mode)
35+
skybox: (window.matchMedia("(prefers-color-scheme: dark)").matches ?
36+
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEU4ODiyn42XAAAACklEQVQI" +
37+
"12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==" :
38+
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEW6urpaLVq8AAAACklEQVQI" +
39+
"12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg=="),
3340
};
3441

3542
// Auto-override any settings from the URL

frontend/viewer/ModelViewerWrapper.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ watch(disableTap, (newDisableTap) => {
215215
<model-viewer ref="elem" v-if="sett != null" :ar="sett.arModes.length > 0" :ar-modes="sett.arModes"
216216
:environment-image="sett.background" :exposure="sett.exposure" :autoplay="sett.autoplay"
217217
:orbit-sensitivity="sett.orbitSensitivity" :pan-sensitivity="sett.panSensitivity"
218-
:poster="poster" :shadow-intensity="sett.shadowIntensity" :skybox-image="sett.background"
218+
:poster="poster" :shadow-intensity="sett.shadowIntensity" :skybox-image="sett.skybox"
219219
:src="props.src" :zoom-sensitivity="sett.zoomSensitivity" alt="The 3D model(s)" camera-controls
220220
camera-orbit="30deg 75deg auto" interaction-prompt="none" max-camera-orbit="Infinity 180deg auto"
221221
min-camera-orbit="-Infinity 0deg 5%" style="width: 100%; height: 100%">
@@ -302,4 +302,4 @@ watch(disableTap, (newDisableTap) => {
302302
float: left;
303303
transition: width 0.3s;
304304
}
305-
</style>
305+
</style>

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default defineConfig({
2828
build: {
2929
assetsDir: '.', // Support deploying to a subdirectory using relative URLs
3030
cssCodeSplit: false, // Small enough to inline
31-
chunkSizeWarningLimit: 550, // Three.js is big. Draco is even bigger but not likely to be used.
31+
chunkSizeWarningLimit: 1024, // Three.js is big. Draco is even bigger but not likely to be used.
3232
sourcemap: true, // For debugging production
3333
},
3434
define: {

yacv_server/cad.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ def get_shape(obj: CADLike, error: bool = True) -> Optional[CADCoreLike]:
7878
# Sorting is required to improve hashcode consistency
7979
shapes_raw_filtered_sorted = sorted(shapes_raw_filtered, key=lambda x: _hashcode(x))
8080
# Build a single compound shape (skip locations/axes here, they can't be in a Compound)
81-
shapes_bd = [Compound(shape) for shape in shapes_raw_filtered_sorted if shape is not None and not isinstance(shape, TopLoc_Location)]
81+
shapes_bd = [Compound(shape) for shape in shapes_raw_filtered_sorted if
82+
shape is not None and not isinstance(shape, TopLoc_Location)]
8283
return get_shape(Compound(shapes_bd), error)
8384
except TypeError:
8485
pass
@@ -168,7 +169,7 @@ def vert(v: Vector) -> Vector:
168169
vert(plane.origin + plane.x_dir * width / 2 + plane.y_dir * height / 2),
169170
vert(plane.origin + plane.x_dir * width / 2 - plane.y_dir * height / 2),
170171
vert(plane.origin - plane.x_dir * width / 2 - plane.y_dir * height / 2),
171-
], [
172+
], [vert(plane.z_dir)] * 4, [
172173
(0, 2, 1),
173174
(0, 3, 2),
174175
], [

0 commit comments

Comments
 (0)