lavavu 1.8.84__cp38-cp38-win_amd64.whl → 1.9.0__cp38-cp38-win_amd64.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
1
  Metadata-Version: 2.1
2
2
  Name: lavavu
3
- Version: 1.8.84
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
@@ -215,13 +215,14 @@ License-File: LICENSE.md
215
215
  Requires-Dist: numpy>=1.18
216
216
  Requires-Dist: aiohttp
217
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.84)
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,5 +1,5 @@
1
1
  lavavu/LavaVuPython.py,sha256=uTyBhkTp-Gcg468mS7EXZWxUU4TVtQ0R6D169CnMUZ0,33768
2
- lavavu/_LavaVuPython.cp38-win_amd64.pyd,sha256=xFsr-WZ6_Zl6t4epnULdurthcQ5eEHaELS4HxjfgiqY,3117056
2
+ lavavu/_LavaVuPython.cp38-win_amd64.pyd,sha256=bNtC88nDoweEyjK71-m7R_uu6SPmaext8oCO5Q-VQY8,3117056
3
3
  lavavu/__init__.py,sha256=ZOkoA9N5M5swxkeLDlrc9NGFQ1PggLWW4GheseTtq8I,206
4
4
  lavavu/__main__.py,sha256=9L7Rfhb_U9Oqkop7MVJ4fi9XUnx4t2vpajOMKNNVunc,247
5
5
  lavavu/amalgamate.py,sha256=goS8OLot2q400zRMMRoksYkaNyBgRJlrpU1UxSKwLmA,601
@@ -14,7 +14,7 @@ lavavu/convert.py,sha256=3F79LHdsi74pvewvDuvnlYR_Zsh5mCc1QI7XZnQSMN8,36404
14
14
  lavavu/dict.json,sha256=1q3o7wF_siDIwmA2Sw1nh8Y1knlfmWJ64EHki21iWRU,55246
15
15
  lavavu/font.bin,sha256=fvi5zkvmq6gh9v3jXedBVuxNJWKmHtbjECzv6eT9wb4,225360
16
16
  lavavu/glfw3.dll,sha256=zI-Qy4RDHQo4mYYgW4QLREz-WZ5l5HCXJzyksyTy0bY,83456
17
- lavavu/lavavu.py,sha256=GBV1gn62IBa1Kd9eRDFwYkh0fiuvU9fRogNxICerEe8,214242
17
+ lavavu/lavavu.py,sha256=uu5Y3UVV7So3AMt5scmkHwRBoyQKpUEcr_L_Wvnxd-o,223286
18
18
  lavavu/liblzma.dll,sha256=_n95XbzYpeaXq6wB884fmpf8nqs2Ot9gyxUL_CS2TCI,154624
19
19
  lavavu/points.py,sha256=bp5XFMUHShjeRW7XUNgq8uxj3wjk4EE-qnWEJjAn-uM,6062
20
20
  lavavu/postproc-55.dll,sha256=DwfCHwxbuZiEzRcfbh5aa-5Ax3xIsWkxEN0achBvJPU,133120
@@ -46,22 +46,24 @@ lavavu/html/server.js,sha256=WXuAnY6aE4h8vYs4U2sl4Xq5RjrkuDi-mIgM-x3Nkj0,7325
46
46
  lavavu/html/stats.min.js,sha256=q9kZjkwmWu8F8HV-4m2EfZRJXQBzyibceJoz-tDgB94,1970
47
47
  lavavu/html/styles.css,sha256=8JE8l7zcc0PV8CfOQpfDyhM226-Sq9eDLXvTCe-wSgw,3041
48
48
  lavavu/html/webview-template.html,sha256=E5w7pd91z0WL3244PQxDKMNZorWzoRT5G7wuBHXJc6Y,1573
49
- lavavu/html/webview.html,sha256=9F-wQhoSXW_u1kP0eN_VeDy_tYpJDZrZ5hYJ20LRmtY,1565
50
- lavavu/shaders/default.frag,sha256=AlGMo01JdaOsXx6Gq7s1WADi2b-vyX9XMSB91AcJvuA,278
51
- lavavu/shaders/default.vert,sha256=SKC2BkE2axNjJL2j5QYjU2bj6mMXs8Wq02XgMTiOeFo,334
52
- lavavu/shaders/fontShader.frag,sha256=0GGFFg6S4v0p_1gDTIATDmc19jrCl7xIgH9PpxcXEcE,469
49
+ lavavu/html/webview.html,sha256=vK_u8TDI1ofFgkc2zMkyiCjsQ2QnkgoirvipuUxitvM,1564
50
+ lavavu/osmesa/LavaVuPython.py,sha256=uTyBhkTp-Gcg468mS7EXZWxUU4TVtQ0R6D169CnMUZ0,33768
51
+ lavavu/osmesa/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
+ lavavu/shaders/default.frag,sha256=SHdqowe24zRNKnffZX7XilwD_I0NhVx9_rR04YJlLTE,194
53
+ lavavu/shaders/default.vert,sha256=I3K_YYirw2UaIMj_l-8QD7wdkQeXHN8xNNvIWs6Vnvo,369
54
+ lavavu/shaders/fontShader.frag,sha256=c3U05-GMI5zd2jpQqi7w-D2nHWkVdGI-IXMncJxgVvM,371
53
55
  lavavu/shaders/fontShader.vert,sha256=4C1G47_G_8dNaoARI9hWyftTbGQ3lQnc4dx0u7Q2j-k,308
54
- lavavu/shaders/lineShader.frag,sha256=lK_fAYSim-xrgpqQ9ZI6bQ-unXs_xq8BDEFuh1hKzRg,988
55
- lavavu/shaders/lineShader.vert,sha256=OP_hi3TSUuDkmqEiQKLsKqE_XBHOl5xGQS7iBSV9Rfw,550
56
- lavavu/shaders/pointShader.frag,sha256=2DfYQhhM-b38xaBjUMCAzhIrOGWmqpcyzKUpMCq3qSc,3516
57
- lavavu/shaders/pointShader.vert,sha256=YJMQ35fq4sK_wUwjmkti_awjhKLqGKrbs07gAgiT-N8,1292
58
- lavavu/shaders/triShader.frag,sha256=eVGp_ttGMVgKnDYRwByvx_PN80EYiSz61jeuAD8JJvw,5177
59
- lavavu/shaders/triShader.vert,sha256=tzgJjqbhKDgVngUJvMVL1ehYvwxAMFLQ-WtKEYU3in0,1175
60
- lavavu/shaders/volumeShader.frag,sha256=PLTei6fN_uLxPD35LHbBQVe_S7TanxdBqcW5khslQMI,16583
56
+ lavavu/shaders/lineShader.frag,sha256=CgXGNR7B_Uq-yZQiyOXQEvEzwdqxkyxXEStvU1ptgNg,927
57
+ lavavu/shaders/lineShader.vert,sha256=KpeKdUKStdL3_6WG9H4rCYU3oQ6qY1vWbhTaZnCb_FQ,527
58
+ lavavu/shaders/pointShader.frag,sha256=ua2SDQMU6b9and4aM17TGqLtyEW4FhoqbQNPo41v3AY,3418
59
+ lavavu/shaders/pointShader.vert,sha256=Mbit_gPM2jKiePIgpl2eRLiaY4brSIQ2WTDiJDMabZw,1213
60
+ lavavu/shaders/triShader.frag,sha256=6VhNYBN5encmiE6jM-Y_titqCteTnL4AcefGprVDqxM,4754
61
+ lavavu/shaders/triShader.vert,sha256=haljW2eQwyB24QWR1SURspU1z6ndskdZG7mrILfgXzo,1129
62
+ lavavu/shaders/volumeShader.frag,sha256=6NeP_bgEl0SNOAjMxOWORhU62-TA9KyveDZ93mVtkKE,14594
61
63
  lavavu/shaders/volumeShader.vert,sha256=CroiEfEIe7pP66w14KwmKxfbTuKN6EuXYbZJvt_bfHk,83
62
- lavavu-1.8.84.dist-info/LICENSE.md,sha256=zHOh_qOPkfR76vdrTRP7J-BqPieAIWVDTl2ZP0SN6lQ,8782
63
- lavavu-1.8.84.dist-info/METADATA,sha256=AJGc4e_tLRCUz0jmFTyFKolg_MZ5cRdN3AuepnWh0_Y,18555
64
- lavavu-1.8.84.dist-info/WHEEL,sha256=rTcqimtzpX3smAWAhGmiRSWAxTY4PqYPNE-p4kscHDQ,99
65
- lavavu-1.8.84.dist-info/entry_points.txt,sha256=LC2qXR6EMe45Cb7zGAF99R9HFrAECP6Qkp_YuG6HZB0,44
66
- lavavu-1.8.84.dist-info/top_level.txt,sha256=JptS0k1nlBumjLs_0hITr3_XUJhxqvKBXD2jGho3E3A,7
67
- lavavu-1.8.84.dist-info/RECORD,,
64
+ lavavu-1.9.0.dist-info/LICENSE.md,sha256=zHOh_qOPkfR76vdrTRP7J-BqPieAIWVDTl2ZP0SN6lQ,8782
65
+ lavavu-1.9.0.dist-info/METADATA,sha256=CTWDEVfZavnn9iaHXY8L3cPTToZGVlaQdsa-70thFAs,18586
66
+ lavavu-1.9.0.dist-info/WHEEL,sha256=rTcqimtzpX3smAWAhGmiRSWAxTY4PqYPNE-p4kscHDQ,99
67
+ lavavu-1.9.0.dist-info/entry_points.txt,sha256=LC2qXR6EMe45Cb7zGAF99R9HFrAECP6Qkp_YuG6HZB0,44
68
+ lavavu-1.9.0.dist-info/top_level.txt,sha256=JptS0k1nlBumjLs_0hITr3_XUJhxqvKBXD2jGho3E3A,7
69
+ lavavu-1.9.0.dist-info/RECORD,,