Skip to content

Commit 3c0dc06

Browse files
committed
settings to speedup mesh normal calc
1 parent 2052e9b commit 3c0dc06

8 files changed

+36
-4
lines changed

test/image/compare_pixels_test.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,6 @@ function untestableFilter(mockName) {
9898
mockName.indexOf('gl2d_') !== -1 ||
9999
mockName.indexOf('mapbox_') !== -1 ||
100100
mockName.indexOf('gl3d_cone-') !== -1 ||
101-
mockName.indexOf('gl3d_volume_airflow') !== -1 ||
102-
mockName.indexOf('gl3d_volume_between-ranges') !== -1 ||
103-
mockName.indexOf('gl3d_volume_data-cube') !== -1 ||
104-
mockName.indexOf('gl3d_volume_multiple-traces') !== -1 ||
105101
mockName.indexOf('gl3d_volume_mri') !== -1
106102
);
107103

test/image/mocks/gl3d_volume_airflow.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"data": [{
33
"type": "volume",
4+
"flatshading": true,
5+
"lighting": {
6+
"facenormalsepsilon": 0
7+
},
48
"colorscale": [[ 0.0, "rgb(0,0,255)" ], [ 0.5, "rgb(255,255,255)" ], [ 0.75, "rgb(255,255,0)" ], [ 0.875, "rgb(255,0,0)" ], [ 1.0, "rgb(127,127,127)" ]],
59
"reversescale": true,
610
"opacityscale": [

test/image/mocks/gl3d_volume_between-ranges.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"data": [{
33
"type": "volume",
4+
"flatshading": true,
5+
"lighting": {
6+
"facenormalsepsilon": 0
7+
},
48
"colorscale": "Blackbody",
59
"reversescale": true,
610
"opacityscale": "max",

test/image/mocks/gl3d_volume_data-cube.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"data": [{
33
"type": "volume",
4+
"flatshading": true,
5+
"lighting": {
6+
"facenormalsepsilon": 0
7+
},
48
"colorscale": [[ 0.0, "rgb(0,0,255)" ], [ 0.5, "rgb(255,255,255)" ], [ 0.75, "rgb(255,255,0)" ], [ 0.875, "rgb(255,0,0)" ], [ 1.0, "rgb(0,0,0)" ]],
59
"reversescale": false,
610
"opacityscale": "max",

test/image/mocks/gl3d_volume_mri.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"data": [{
33
"type": "volume",
4+
"flatshading": true,
5+
"lighting": {
6+
"facenormalsepsilon": 0
7+
},
48
"colorscale": [[ 0.0, "rgb(127,127,127)" ], [ 0.099, "rgb(127,127,127)" ], [ 0.1, "rgb(0,0,0)" ], [ 0.5, "rgb(255,0,0)" ], [ 0.9, "rgb(255,255,0)" ], [ 0.901, "rgb(127,127,127)" ], [ 1.0, "rgb(127,127,127)" ]],
59
"reversescale": false,
610
"opacityscale": [[ 0.0, 0.0 ], [ 0.099, 0.0 ], [ 0.1, 1.0 ], [ 0.5, 1.0 ], [ 0.9, 1.0 ], [ 0.901, 0.0 ], [ 1.0, 0.0 ]],

test/image/mocks/gl3d_volume_multiple-traces.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"data": [
33
{
44
"type": "volume",
5+
"flatshading": true,
6+
"lighting": {
7+
"facenormalsepsilon": 0
8+
},
59
"opacity": 0.3,
610
"opacityscale": "extremes",
711
"colorscale": "Blackbody",
@@ -763,6 +767,10 @@
763767

764768
}, {
765769
"type": "volume",
770+
"flatshading": true,
771+
"lighting": {
772+
"facenormalsepsilon": 0
773+
},
766774
"opacity": 0.3,
767775
"opacityscale": "extremes",
768776
"colorscale": "Blackbody",

test/image/mocks/gl3d_volume_multiple-traces_one-cube.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"data": [
33
{
44
"type": "volume",
5+
"flatshading": true,
6+
"lighting": {
7+
"facenormalsepsilon": 0
8+
},
59
"opacity": 0.05,
610
"opacityscale": [[ 0, 0 ], [ 0.499, 0 ], [ 0.5, 1 ], [ 0.7, 1 ], [ 0.9, 1 ], [ 0.901, 0 ], [ 1.0, 0 ]],
711
"colorscale": [[ 0, "rgb(127,127,127)" ], [ 0.499, "rgb(127,127,127)" ], [ 0.5, "rgb(255,255,0)" ], [ 0.7, "rgb(255,0,0)" ], [ 0.9, "rgb(0,0,0)" ], [ 0.901, "rgb(127,127,127)" ], [ 1.0, "rgb(127,127,127)" ]],
@@ -2843,6 +2847,10 @@
28432847
]
28442848
}, {
28452849
"type": "volume",
2850+
"flatshading": true,
2851+
"lighting": {
2852+
"facenormalsepsilon": 0
2853+
},
28462854
"opacity": 0.05,
28472855
"opacityscale": [[ 0, 0 ], [ 0.199, 0 ], [ 0.2, 1 ], [ 0.4, 1 ], [ 0.401, 0 ], [ 1.0, 0 ]],
28482856
"colorscale": [[ 0, "rgb(127,127,127)" ], [ 0.199, "rgb(127,127,127)" ], [ 0.2, "rgb(0,0,255)" ], [ 0.4, "rgb(0,255,0)" ], [ 0.401, "rgb(127,127,127)" ], [ 1.0, "rgb(127,127,127)" ]],

test/image/mocks/gl3d_volume_opacityscale-iso.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"data": [{
33
"type": "volume",
4+
"flatshading": true,
5+
"lighting": {
6+
"facenormalsepsilon": 0
7+
},
48
"colorscale": [[ 0.0, "rgb(127,127,127)" ], [ 0.332, "rgb(127,127,127)" ], [ 0.333, "rgb(0,0,0)" ], [ 0.5, "rgb(255,0,0)" ], [ 0.666, "rgb(255,255,0)" ], [ 0.667, "rgb(127,127,127)" ], [ 1.0, "rgb(127,127,127)" ]],
59
"reversescale": false,
610
"opacityscale": [[ 0.0, 0.0 ], [ 0.332, 0.0 ], [ 0.333, 1.0 ], [ 0.5, 1.0 ], [ 0.666, 1.0 ], [ 0.667, 0.0 ], [ 1.0, 0.0 ]],

0 commit comments

Comments
 (0)