lavavu 1.8.83__cp312-cp312-macosx_11_0_arm64.whl → 1.9.0__cp312-cp312-macosx_11_0_arm64.whl

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.
@@ -22,25 +22,10 @@ uniform vec3 uClipMax;
22
22
  uniform bool uOpaque;
23
23
  uniform vec4 uLight;
24
24
 
25
- #ifdef WEBGL
26
- #define outColour gl_FragColor
27
- #define texture(a,b) texture2D(a,b)
28
-
29
- //Before OpenGL 3+ we need our own isnan function
30
- bool isnan3(vec3 val)
31
- {
32
- if (!(val.x < 0.0 || 0.0 < val.x || val.x == 0.0)) return true;
33
- if (!(val.y < 0.0 || 0.0 < val.y || val.y == 0.0)) return true;
34
- if (!(val.z < 0.0 || 0.0 < val.z || val.z == 0.0)) return true;
35
- return false;
36
- }
37
-
38
- #else
39
25
  #define isnan3(v) any(isnan(v))
40
26
  flat in vec4 vFlatColour;
41
27
  uniform bool uFlat;
42
28
  out vec4 outColour;
43
- #endif
44
29
 
45
30
  uniform bool uCalcNormal;
46
31
 
@@ -69,10 +54,8 @@ void main(void)
69
54
  if (any(lessThan(vVertex, uClipMin)) || any(greaterThan(vVertex, uClipMax))) discard;
70
55
 
71
56
  vec4 fColour = vColour;
72
- #ifndef WEBGL
73
57
  if (uFlat)
74
58
  fColour = vFlatColour;
75
- #endif
76
59
  float alpha = fColour.a;
77
60
  if (uTextured && vTexCoord.x > -1.0) //Null texcoord (-1,-1)
78
61
  {
@@ -2,9 +2,7 @@ in vec3 aVertexPosition;
2
2
  in vec3 aVertexNormal;
3
3
  in vec4 aVertexColour;
4
4
  in vec2 aVertexTexCoord;
5
- #ifndef WEBGL
6
5
  flat out vec4 vFlatColour;
7
- #endif
8
6
 
9
7
  uniform mat4 uMVMatrix;
10
8
  uniform mat4 uPMatrix;
@@ -34,9 +32,7 @@ void main(void)
34
32
  vColour = aVertexColour;
35
33
 
36
34
  vTexCoord = aVertexTexCoord;
37
- #ifndef WEBGL
38
35
  vFlatColour = vColour;
39
- #endif
40
36
  vVertex = aVertexPosition;
41
37
 
42
38
  //Head light, lightPos=(0,0,0) - vPosEye
@@ -6,17 +6,10 @@
6
6
  * https://www.gnu.org/licenses/lgpl.html
7
7
  * (volume shader from sharevol https://github.com/OKaluza/sharevol)
8
8
  */
9
- #ifdef WEBGL
10
- uniform sampler2D uVolume;
11
- #define NO_DEPTH_WRITE
12
- #define outColour gl_FragColor
13
- #define texture(a,b) texture2D(a,b)
14
- #else
15
9
  //Included dynamically before compile in WebGL mode...
16
10
  const int maxSamples = 2048;
17
11
  uniform sampler3D uVolume;
18
12
  out vec4 outColour;
19
- #endif
20
13
 
21
14
  const float depthT = 0.99; //Transmissivity threshold below which depth write applied
22
15
 
@@ -63,63 +56,7 @@ vec3 bbMax;
63
56
  float interpolate_tricubic_fast(vec3 coord);
64
57
  #endif
65
58
 
66
- #ifdef WEBGL
67
-
68
- vec2 islices = vec2(1.0 / slices.x, 1.0 / slices.y);
69
- float maxslice = slices.x * slices.y - 1.0;
70
- //Clamp to a bit before halfway for the edge voxels
71
- vec2 cmin = vec2(0.55/(slices.x*slices.y), 0.55/(slices.x*slices.y));
72
- vec2 cmax = vec2(1.0, 1.0) - cmin;
73
-
74
- float sample(vec3 pos)
75
- {
76
- //Get z slice index and position between two slices
77
- float Z = pos.z * maxslice;
78
- float slice = floor(Z); //Index of first slice
79
- Z = fract(Z);
80
- //Edge case at z min (possible with tricubic filtering)
81
- if (int(slice) < 0)
82
- {
83
- slice = 0.0;
84
- Z = 0.0;
85
- }
86
- //Edge case at z max
87
- else if (int(slice) > int(maxslice)-1)
88
- {
89
- slice = maxslice-1.0;
90
- Z = 1.0;
91
- }
92
- //Only start interpolation with next Z slice 1/3 from edges at first & last z slice
93
- //(this approximates how 3d texture volume is sampled at edges with linear filtering
94
- // due to edge sample being included in weighted average twice)
95
- // - min z slice
96
- else if (int(slice) == 0)
97
- {
98
- Z = max(0.0, (Z-0.33) * 1.5);
99
- }
100
- // - max z slice
101
- else if (int(slice) == int(maxslice)-1)
102
- {
103
- Z = min(1.0, Z*1.5);
104
- }
105
-
106
- //X & Y coords of sample scaled to slice size
107
- //(Clamp range at borders to prevent bleeding between tiles due to linear filtering)
108
- vec2 sampleOffset = clamp(pos.xy, cmin, cmax) * islices;
109
- //Offsets in 2D texture of given slice indices
110
- //(add offsets to scaled position within slice to get sample positions)
111
- float A = slice * islices.x;
112
- float B = (slice+1.0) * islices.x;
113
- vec2 z1offset = vec2(fract(A), floor(A) / slices.y) + sampleOffset;
114
- vec2 z2offset = vec2(fract(B), floor(B) / slices.y) + sampleOffset;
115
-
116
- //Interpolate the final value by position between slices [0,1]
117
- return mix(texture2D(uVolume, z1offset).x, texture2D(uVolume, z2offset).x, Z);
118
- }
119
-
120
- #else
121
59
  #define sample(pos) (texture(uVolume, pos).x)
122
- #endif
123
60
 
124
61
  float tex3D(vec3 pos)
125
62
  {
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: lavavu
3
- Version: 1.8.83
3
+ Version: 1.9.0
4
4
  Summary: Python interface to LavaVu OpenGL 3D scientific visualisation utilities
5
5
  Author-email: Owen Kaluza <owen@kaluza.id.au>
6
6
  License: ### Licensing
@@ -214,14 +214,15 @@ Description-Content-Type: text/markdown
214
214
  License-File: LICENSE.md
215
215
  Requires-Dist: numpy>=1.18
216
216
  Requires-Dist: aiohttp
217
- Requires-Dist: jupyter-server-proxy
217
+ Requires-Dist: jupyter_server_proxy
218
+ Requires-Dist: numpy-quaternion
218
219
 
219
220
  ![# logo](http://owen.kaluza.id.au/Slides/2017-08-15/LavaVu.png)
220
221
 
221
222
  [![Build Status](https://github.com/lavavu/LavaVu/workflows/Test/badge.svg)](https://github.com/lavavu/LavaVu/actions?query=workflow:Test)
222
223
  [![Deploy Status](https://github.com/lavavu/LavaVu/workflows/Deploy/badge.svg?branch=1.7.3)](https://github.com/lavavu/LavaVu/actions?query=workflow:Deploy)
223
224
  [![DOI](https://zenodo.org/badge/45163055.svg)](https://zenodo.org/badge/latestdoi/45163055)
224
- [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/lavavu/LavaVu/1.8.83)
225
+ [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/lavavu/LavaVu/1.9.0)
225
226
 
226
227
  A scientific visualisation tool with a python interface for fast and flexible visual analysis.
227
228
 
@@ -1,13 +1,13 @@
1
- lavavu/lavavu.py,sha256=wBjlfDY-MTolGCigPS1bG3Z0ZEJMQjI5A8I2PtkRQS8,208226
1
+ lavavu/lavavu.py,sha256=5JdzlRaEjuWAPjBQrgIKEyIS2RRL2RIrQ2aWaHFkg2A,217172
2
2
  lavavu/vutils.py,sha256=6Vm_xl1bp9mWlfk7jgLDwbRw-tdE_oxin77YkLel3_4,5437
3
3
  lavavu/dict.json,sha256=lsZEHc7Bb6_lt7tkSBQMgkq7AEn_2hnhWzzdokmvIY8,52729
4
4
  lavavu/server.py,sha256=L-_yPCbNfwYxJCPjDQtr_lxPnDp4oMNVFyxXhBERYrQ,12468
5
5
  lavavu/points.py,sha256=jRRtA6CrcA46Y2jUJmkxnIiVoMC5a14xEd_ojhmjhz4,5871
6
- lavavu/_LavaVuPython.cpython-312-darwin.so,sha256=7gvO0eReEetrphyEESm0TMJqa0lCA1MLNTsaPP42P9k,3842496
6
+ lavavu/_LavaVuPython.cpython-312-darwin.so,sha256=ywP9tx_qUneWfci1Yh0lFUZBUiCAo-9XL9ZmTPpmcgQ,3927360
7
7
  lavavu/LavaVuPython.py,sha256=ixhceiAr0gGGfCe3d2cY0IIgS4hbgoYJGa_RfgAmmrU,33207
8
8
  lavavu/tracers.py,sha256=0dB6v9Jg5G-IeZxiVFvbPoTycGvyAQBtgyEAZUmq4XU,4257
9
9
  lavavu/convert.py,sha256=tbYRjLE2l1hI4d6tsW41Lia1JXmrWSc0-JAYCiMrjys,35516
10
- lavavu/control.py,sha256=eNocZPc-2Dz-nSty_KRz_9RzLvbU0clJGuAV3qnzxbU,65841
10
+ lavavu/control.py,sha256=C5fLZeeNazRODDlWyWhKINry86uW7jAu3x_MvmrKeO8,66434
11
11
  lavavu/__init__.py,sha256=JroZQiUbuVN7ifixk2zNDGlyLGaM8bqfRbw4D_F9qIQ,191
12
12
  lavavu/amalgamate.py,sha256=Xloq1IZ4VUvYiROzQtwKcQIWC65c7EZrdiGVhZdolL8,586
13
13
  lavavu/aserver.py,sha256=SfFvLeDTcx1XtS8fY_HIrDmh3q9HicCBRSAriY5yyOE,12003
@@ -27,27 +27,29 @@ lavavu/html/dat.gui.min.js,sha256=S4_QjoXe4IOpU0f0Sj5jEQLTWPoX9uRl1ohB91jyhuw,56
27
27
  lavavu/html/OK-min.js,sha256=-4Gc1-dWfxP_w6r9ZOHa8u-X2BlGUoSQbX68lwCxQ3E,39115
28
28
  lavavu/html/emscripten.css,sha256=wkaIJhXaxuMchinQX9Z8c12cJomyvFQMeIZ62WGQEPQ,1813
29
29
  lavavu/html/drawbox.js,sha256=SJxFSmWd7QVFI5__66hFkKzLKeqg1JPcx-gJuqdMkXw,34590
30
- lavavu/html/webview.html,sha256=_kNxQCpgMOijm1yV66Wua3_Tu6txvaUVyCllKIaITds,1522
30
+ lavavu/html/webview.html,sha256=aFUGmVs3dT3R9X9IgA5WN8ND6tWFM0Ki5mgywqIRjz4,1521
31
31
  lavavu/html/emscripten-template.js,sha256=h63mzl3Lv7aQT1wMOiOucPOvHTJjpKkzsL-SFVYaZlA,6135
32
32
  lavavu/html/draw.js,sha256=57LlHlYRh0IvWVwzGDnF6PaCxYLzokpokLNCuZlG1ds,84108
33
33
  lavavu/html/dat-gui-light-theme.css,sha256=uPhvJs-1IAsdxudItyOw8lZy8Hrih0zmFM1u-xRwZ-M,1142
34
34
  lavavu/html/menu.js,sha256=WCli3UYcQ7frjNq0aAXNALu33iNiN8lpTYwKZ7pUcn4,21501
35
35
  lavavu/html/baseviewer.js,sha256=u3UhC1At6rMBKmcQ7d2DXTRxQ20wsQkc4lqA-7sL7i4,9567
36
- lavavu/shaders/volumeShader.frag,sha256=CIFSfwI8xVZ0ALme2QPMcXWl5yB55WCGnfJZ1Led6TU,16120
37
- lavavu/shaders/pointShader.vert,sha256=rnEa8PfIK3kFtFg04Ataf10aWsjEkh1URY2ipV1xTMY,1235
38
- lavavu/shaders/lineShader.frag,sha256=aCmOWC20fHinR32p6LZPdCZP6abn-K1V2slbJ_5NoVA,945
39
- lavavu/shaders/fontShader.frag,sha256=DXAzO7kS36TBzYMJW0XqFiQQTTc4jFedGiUkLjelYKs,444
40
- lavavu/shaders/triShader.frag,sha256=pG6eWiVgtHB8cSHyB8W3SHrc7-mLqaCRlZaHZfsEKhc,5007
41
- lavavu/shaders/default.vert,sha256=9J5Oqg8ns711fSNeQTtdA7ENb2sfonx0KGh1QfHp5Ws,317
42
- lavavu/shaders/triShader.vert,sha256=pJXftq7IiqiGe7NTMmuBUMDs4OZc9TD8lNJ4q-8B57Q,1120
43
- lavavu/shaders/lineShader.vert,sha256=6kJQcfu3eqaj910_KdaklVRvYxNbeu0ZbpDEOxRVde0,522
36
+ lavavu/osmesa/LavaVuPython.py,sha256=ixhceiAr0gGGfCe3d2cY0IIgS4hbgoYJGa_RfgAmmrU,33207
37
+ lavavu/osmesa/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
+ lavavu/shaders/volumeShader.frag,sha256=Ajkpt0S2p0PpbQ2jygDnrymSgPMU2CG5xQT-dq2rr90,14194
39
+ lavavu/shaders/pointShader.vert,sha256=mDMF4wAPvHELXT5rXN_QZFezxvK4q50Mdm-qZZJ7FYI,1160
40
+ lavavu/shaders/lineShader.frag,sha256=2PQBMcb149jVKnsBhTvU1vf94x91O0kAdOBTSs8OpGY,888
41
+ lavavu/shaders/fontShader.frag,sha256=clgomy2lu-1u7w0GwFd0BNU_L3-SkYt8zv03N5ciJug,351
42
+ lavavu/shaders/triShader.frag,sha256=SkPatq2s7Osa5o7U3lg-7We8ldY0oHZHCLuQjRY4Vgk,4601
43
+ lavavu/shaders/default.vert,sha256=3xKybexF39UGsESMLQQcqHlE1MgLCDEXUMLz4sr5blQ,352
44
+ lavavu/shaders/triShader.vert,sha256=H7rTS-WO5QiT9uP1ClhufQM8minSWknJ9UvKAEVnzRU,1078
45
+ lavavu/shaders/lineShader.vert,sha256=5HDJMphXW438yMc0I2NtBdnvF6uXrOUac9hjk3S7mfk,501
44
46
  lavavu/shaders/fontShader.vert,sha256=yCBmRugaPUeUQUdIh62-AK_5KELiJqVS2M82iyIqPwo,290
45
- lavavu/shaders/pointShader.frag,sha256=T1PA9Z6FiE66rS2sAmmFIbYM2VqEkLBycxV-sx3nACY,3384
47
+ lavavu/shaders/pointShader.frag,sha256=3zREBdsimlL9fAXBPjhzomGaFUWmlG_QYkhwMTVURHQ,3291
46
48
  lavavu/shaders/volumeShader.vert,sha256=uGdQjGqi7V5kE6V7nxymfugtU4cbf6u570xBy13RgmY,78
47
- lavavu/shaders/default.frag,sha256=xCkYz8QriRlnAr-NtenZSIWI_liSxv9jz3Lp5immK9k,258
48
- lavavu-1.8.83.dist-info/LICENSE.md,sha256=EhfNgC6BYh5gDEaq4tcrN3S0wbO4CtJO46botJnCF8c,8603
49
- lavavu-1.8.83.dist-info/RECORD,,
50
- lavavu-1.8.83.dist-info/WHEEL,sha256=S0Hwrf9eIBnYrjT_RLlC_ol1IXh3ugiD6Pk0jUjVaHY,109
51
- lavavu-1.8.83.dist-info/entry_points.txt,sha256=LC2qXR6EMe45Cb7zGAF99R9HFrAECP6Qkp_YuG6HZB0,44
52
- lavavu-1.8.83.dist-info/top_level.txt,sha256=JptS0k1nlBumjLs_0hITr3_XUJhxqvKBXD2jGho3E3A,7
53
- lavavu-1.8.83.dist-info/METADATA,sha256=3zHhUXvq0MCYyYDQt4scqr37Q_z2kysMPgCFcMQ3tLc,18237
49
+ lavavu/shaders/default.frag,sha256=5XLYVfLwzN0sFT3aMYGmxbyquA_cmndp55YCOuy1t4E,180
50
+ lavavu-1.9.0.dist-info/LICENSE.md,sha256=EhfNgC6BYh5gDEaq4tcrN3S0wbO4CtJO46botJnCF8c,8603
51
+ lavavu-1.9.0.dist-info/RECORD,,
52
+ lavavu-1.9.0.dist-info/WHEEL,sha256=VujM3ypTCyUW6hcTDdK2ej0ARVMxlU1Djlh_zWnDgqk,109
53
+ lavavu-1.9.0.dist-info/entry_points.txt,sha256=LC2qXR6EMe45Cb7zGAF99R9HFrAECP6Qkp_YuG6HZB0,44
54
+ lavavu-1.9.0.dist-info/top_level.txt,sha256=JptS0k1nlBumjLs_0hITr3_XUJhxqvKBXD2jGho3E3A,7
55
+ lavavu-1.9.0.dist-info/METADATA,sha256=yZSA74LHPQhIIUvqPUS3b9DhXpvQ3MLvl8lDLmENqS8,18267
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.3.0)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp312-cp312-macosx_11_0_arm64
5
5