@@ -37,7 +37,10 @@ class OCCViewer(QWidget,ComponentMixin):
37
37
{'name' : 'Use gradient' , 'type' : 'bool' , 'value' : False },
38
38
{'name' : 'Background color' , 'type' : 'color' , 'value' : (95 ,95 ,95 )},
39
39
{'name' : 'Background color (aux)' , 'type' : 'color' , 'value' : (30 ,30 ,30 )},
40
- {'name' : 'Default object color' , 'type' : 'color' , 'value' : "FF0" }])
40
+ {'name' : 'Default object color' , 'type' : 'color' , 'value' : "FF0" },
41
+ {'name' : 'Deviation' , 'type' : 'float' , 'value' : 1e-5 , 'dec' : True , 'step' : 1 },
42
+ {'name' : 'Angular deviation' , 'type' : 'float' , 'value' : 0.1 , 'dec' : True , 'step' : 1 }])
43
+
41
44
42
45
IMAGE_EXTENSIONS = 'png'
43
46
@@ -70,6 +73,10 @@ def updatePreferences(self,*args):
70
73
self .canvas .view .SetBgGradientColors (color1 ,color2 ,theToUpdate = True )
71
74
72
75
self .canvas .update ()
76
+
77
+ ctx = self .canvas .context
78
+ ctx .SetDeviationCoefficient (self .preferences ['Deviation' ])
79
+ ctx .SetDeviationAngle (self .preferences ['Angular deviation' ])
73
80
74
81
def create_actions (self ,parent ):
75
82
0 commit comments