@@ -88,7 +88,6 @@ def applyTextures(self, id, textures):
8888
8989 self .render ()
9090
91-
9291 def SetVisibility (self , id , visibility ):
9392 actor = self .get_object (id )["actor" ]
9493 actor .SetVisibility (visibility )
@@ -103,7 +102,7 @@ def SetColor(self, id, red, green, blue):
103102 mapper = self .get_object (id )["mapper" ]
104103 mapper .ScalarVisibilityOff ()
105104 actor = self .get_object (id )["actor" ]
106- actor .GetProperty ().SetColor ([red , green , blue ])
105+ actor .GetProperty ().SetColor ([red / 255 , green / 255 , blue / 255 ])
107106 self .render ()
108107
109108 def SetEdgesVisibility (self , id , visibility ):
@@ -116,10 +115,11 @@ def SetEdgesSize(self, id, size):
116115 actor .GetProperty ().SetEdgeWidth (size )
117116 self .render ()
118117
119- def SetEdgesColor (self , id , color ):
118+ def SetEdgesColor (self , id , red , green , blue ):
120119 actor = self .get_object (id )["actor" ]
121- actor .GetProperty ().SetEdgeColor (color )
120+ actor .GetProperty ().SetEdgeColor ([ red / 255 , green / 255 , blue / 255 ] )
122121 self .render ()
122+
123123 def SetPointsVisibility (self , id , visibility ):
124124 actor = self .get_object (id )["actor" ]
125125 actor .GetProperty ().SetVertexVisibility (visibility )
@@ -131,19 +131,9 @@ def SetPointsSize(self, id, size):
131131 actor .GetProperty ().SetPointSize (size )
132132 self .render ()
133133
134- def SetPointsColor (self , id , color ):
135- actor = self .get_object (id )["actor" ]
136- actor .GetProperty ().SetVertexColor (color )
137- self .render ()
138-
139- def SetPolygonsVisibility (self , id , visibility ):
140- actor = self .get_object (id )["actor" ]
141- actor .SetVisibility (visibility )
142- self .render ()
143-
144- def SetPolygonsColor (self , id , color ):
134+ def SetPointsColor (self , id , red , green , blue ):
145135 actor = self .get_object (id )["actor" ]
146- actor .GetProperty ().SetColor ( color )
136+ actor .GetProperty ().SetVertexColor ([ red / 255 , green / 255 , blue / 255 ] )
147137 self .render ()
148138
149139 def clearColors (self , id ):
0 commit comments