File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -249,8 +249,5 @@ colorScaleAttrs('', {
249
249
hoverinfo : extendFlat ( { } , baseAttrs . hoverinfo )
250
250
} ) , 'calc' , 'nested' ) ;
251
251
252
- // required defaults to speed up surface normal calculations
253
- attrs . flatshading . dflt = true ; attrs . lighting . facenormalsepsilon . dflt = 0 ;
254
-
255
252
attrs . x . editType = attrs . y . editType = attrs . z . editType = attrs . value . editType = 'calc+clearAxisTypes' ;
256
253
attrs . transforms = undefined ;
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ colorScaleAttrs('', {
191
191
flatshading : {
192
192
valType : 'boolean' ,
193
193
role : 'style' ,
194
- dflt : false ,
194
+ dflt : true ,
195
195
editType : 'calc' ,
196
196
description : [
197
197
'Determines whether or not normal smoothing is applied to the meshes,' ,
@@ -215,18 +215,18 @@ colorScaleAttrs('', {
215
215
vertexnormalsepsilon : {
216
216
valType : 'number' ,
217
217
role : 'style' ,
218
- min : 0.00 ,
218
+ min : 0 ,
219
219
max : 1 ,
220
- dflt : 1e-12 , // otherwise finely tessellated things eg. the brain will have no specular light reflection
220
+ dflt : 0 ,
221
221
editType : 'calc' ,
222
222
description : 'Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry.'
223
223
} ,
224
224
facenormalsepsilon : {
225
225
valType : 'number' ,
226
226
role : 'style' ,
227
- min : 0.00 ,
227
+ min : 0 ,
228
228
max : 1 ,
229
- dflt : 1e-6 , // even the brain model doesn't appear to need finer than this
229
+ dflt : 0 ,
230
230
editType : 'calc' ,
231
231
description : 'Epsilon for face normals calculation avoids math issues arising from degenerate geometry.'
232
232
} ,
You can’t perform that action at this time.
0 commit comments