Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 663ccb8

Browse files
committed
new gl3d mock to lock issue 2477 - lightposition behaves weirdly
1 parent 7f56eea commit 663ccb8

File tree

2 files changed

+176
-0
lines changed

2 files changed

+176
-0
lines changed
63.7 KB
Loading
Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
{
2+
"data": [{
3+
"x": [0, 1, 0, 1, 0, 1, 0, 1],
4+
"y": [0, 0, 1, 1, 0, 0, 1, 1],
5+
"z": [0, 0, 0, 0, 1, 1, 1, 1],
6+
"i": [0, 3, 4, 7, 0, 6, 1, 7, 0, 5, 2, 7],
7+
"j": [1, 2, 5, 6, 2, 4, 3, 5, 4, 1, 6, 3],
8+
"k": [3, 0, 7, 4, 6, 0, 7, 1, 5, 0, 7, 2],
9+
"flatshading": true,
10+
"lighting": {
11+
"facenormalsepsilon": 0
12+
},
13+
"lightposition": { "x": 1000, "y": 1000, "z": 0 },
14+
"color": "yellow" ,
15+
"type": "mesh3d",
16+
"scene": "scene1"
17+
}, {
18+
"x": [0, 1, 0, 1, 0, 1, 0, 1],
19+
"y": [0, 0, 1, 1, 0, 0, 1, 1],
20+
"z": [0, 0, 0, 0, 1, 1, 1, 1],
21+
"i": [0, 3, 4, 7, 0, 6, 1, 7, 0, 5, 2, 7],
22+
"j": [1, 2, 5, 6, 2, 4, 3, 5, 4, 1, 6, 3],
23+
"k": [3, 0, 7, 4, 6, 0, 7, 1, 5, 0, 7, 2],
24+
"flatshading": true,
25+
"lighting": {
26+
"facenormalsepsilon": 0
27+
},
28+
"lightposition": { "x": 1000, "y": 1000, "z": 0 },
29+
"color": "yellow" ,
30+
"type": "mesh3d",
31+
"scene": "scene2"
32+
}, {
33+
"x": [0, 1],
34+
"y": [0, 1],
35+
"z": [[0, 1], [1, 0]],
36+
"lightposition": { "x": 1000, "y": 1000, "z": 0 },
37+
"colorscale": [[0, "yellow"], [1, "yellow"]],
38+
"showscale": false,
39+
"type": "surface",
40+
"scene": "scene3"
41+
}, {
42+
"x": [0, 1],
43+
"y": [0, 1],
44+
"z": [[0, 1], [1, 0]],
45+
"lightposition": { "x": 1000, "y": 1000, "z": 0 },
46+
"colorscale": [[0, "yellow"], [1, "yellow"]],
47+
"showscale": false,
48+
"type": "surface",
49+
"scene": "scene4"
50+
}, {
51+
"x": [0, 0, 1, 1, 0, 0, 1, 1],
52+
"y": [0, 1, 1, 0, 0, 1, 1, 0],
53+
"z": [0, 0, 0, 0, 1, 1, 1, 1],
54+
"u": [0, 0, 1, 1, 0, 0, 1, 1],
55+
"v": [0, 1, 1, 0, 0, 1, 1, 0],
56+
"w": [0, 0, 0, 0, 1, 1, 1, 1],
57+
"lightposition": { "x": 1000, "y": 1000, "z": 0 },
58+
"colorscale": [[0, "yellow"], [1, "yellow"]],
59+
"showscale": false,
60+
"type": "cone",
61+
"scene": "scene5"
62+
}, {
63+
"x": [0, 0, 1, 1, 0, 0, 1, 1],
64+
"y": [0, 1, 1, 0, 0, 1, 1, 0],
65+
"z": [0, 0, 0, 0, 1, 1, 1, 1],
66+
"u": [0, 0, 1, 1, 0, 0, 1, 1],
67+
"v": [0, 1, 1, 0, 0, 1, 1, 0],
68+
"w": [0, 0, 0, 0, 1, 1, 1, 1],
69+
"lightposition": { "x": 1000, "y": 1000, "z": 0 },
70+
"colorscale": [[0, "yellow"], [1, "yellow"]],
71+
"showscale": false,
72+
"type": "cone",
73+
"scene": "scene6"
74+
}, {
75+
"x": [0, 0, 1, 1, 0, 0, 1, 1],
76+
"y": [0, 1, 1, 0, 0, 1, 1, 0],
77+
"z": [0, 0, 0, 0, 1, 1, 1, 1],
78+
"u": [0, 0, 1, 1, 0, 0, 1, 1],
79+
"v": [0, 1, 1, 0, 0, 1, 1, 0],
80+
"w": [0, 0, 0, 0, 1, 1, 1, 1],
81+
"lightposition": { "x": 1000, "y": 1000, "z": 0 },
82+
"colorscale": [[0, "yellow"], [1, "yellow"]],
83+
"showscale": false,
84+
"type": "streamtube",
85+
"scene": "scene7"
86+
}, {
87+
"x": [0, 0, 1, 1, 0, 0, 1, 1],
88+
"y": [0, 1, 1, 0, 0, 1, 1, 0],
89+
"z": [0, 0, 0, 0, 1, 1, 1, 1],
90+
"u": [0, 0, 1, 1, 0, 0, 1, 1],
91+
"v": [0, 1, 1, 0, 0, 1, 1, 0],
92+
"w": [0, 0, 0, 0, 1, 1, 1, 1],
93+
"lightposition": { "x": 1000, "y": 1000, "z": 0 },
94+
"colorscale": [[0, "yellow"], [1, "yellow"]],
95+
"showscale": false,
96+
"type": "streamtube",
97+
"scene": "scene8"
98+
}],
99+
"layout": {
100+
"paper_bgcolor": "lightblue",
101+
"width": 1200,
102+
"height": 600,
103+
"scene1": {
104+
"domain": {
105+
"x": [0, 0.25],
106+
"y": [0, 0.25]
107+
},
108+
"camera": {
109+
"eye": { "x": 1.2, "y": 1.2, "z": 1.2 }
110+
}
111+
},
112+
"scene2": {
113+
"domain": {
114+
"x": [0, 0.25],
115+
"y": [0.5, 1]
116+
},
117+
"camera": {
118+
"eye": { "x": 0, "y": 0, "z": 2 }
119+
}
120+
},
121+
"scene3": {
122+
"domain": {
123+
"x": [0.25, 0.5],
124+
"y": [0, 0.5]
125+
},
126+
"camera": {
127+
"eye": { "x": 1.2, "y": 1.2, "z": 1.2 }
128+
}
129+
},
130+
"scene4": {
131+
"domain": {
132+
"x": [0.25, 0.5],
133+
"y": [0.5, 1]
134+
},
135+
"camera": {
136+
"eye": { "x": 0, "y": 0, "z": 2 }
137+
}
138+
},
139+
"scene5": {
140+
"domain": {
141+
"x": [0.5, 0.75],
142+
"y": [0, 0.5]
143+
},
144+
"camera": {
145+
"eye": { "x": 1.2, "y": 1.2, "z": 1.2 }
146+
}
147+
},
148+
"scene6": {
149+
"domain": {
150+
"x": [0.5, 0.75],
151+
"y": [0.5, 1]
152+
},
153+
"camera": {
154+
"eye": { "x": 0, "y": 0, "z": 2 }
155+
}
156+
},
157+
"scene7": {
158+
"domain": {
159+
"x": [0.75, 1],
160+
"y": [0, 0.5]
161+
},
162+
"camera": {
163+
"eye": { "x": 1.2, "y": 1.2, "z": 1.2 }
164+
}
165+
},
166+
"scene8": {
167+
"domain": {
168+
"x": [0.75, 1],
169+
"y": [0.5, 1]
170+
},
171+
"camera": {
172+
"eye": { "x": 0, "y": 0, "z": 2 }
173+
}
174+
}
175+
}
176+
}

0 commit comments

Comments
 (0)