@@ -111,8 +111,7 @@ def SetEdgesVisibility(self, id, visibility):
111111 max_dimension = self .get_object (id )["max_dimension" ]
112112 if max_dimension == "edges" :
113113 self .SetVisibility (id , visibility )
114- else :
115-
114+ else :
116115 actor .GetProperty ().SetEdgeVisibility (visibility )
117116 self .render ()
118117
@@ -128,17 +127,17 @@ def SetEdgesColor(self, id, red, green, blue):
128127 if max_dimension == "edges" :
129128 self .SetColor (id , red , green , blue )
130129 else :
131- # actor.GetProperty().SetEdgeColor([red / 255, green / 255, blue / 255])
130+ actor .GetProperty ().SetEdgeColor ([red / 255 , green / 255 , blue / 255 ])
132131 self .render ()
133132
134133 def SetPointsVisibility (self , id , visibility ):
135134 actor = self .get_object (id )["actor" ]
136- # max_dimension = self.get_object(id)["max_dimension"]
137- # if max_dimension == "points":
138- # self.SetVisibility(id, visibility)
139- # else:
140- actor .GetProperty ().SetVertexVisibility (visibility )
141- actor .GetProperty ().SetEdgeVisibility (visibility )
135+ max_dimension = self .get_object (id )["max_dimension" ]
136+ if max_dimension == "points" :
137+ self .SetVisibility (id , visibility )
138+ else :
139+ actor .GetProperty ().SetVertexVisibility (visibility )
140+ actor .GetProperty ().SetEdgeVisibility (visibility )
142141 self .render ()
143142
144143 def SetPointsSize (self , id , size ):
@@ -148,11 +147,11 @@ def SetPointsSize(self, id, size):
148147
149148 def SetPointsColor (self , id , red , green , blue ):
150149 actor = self .get_object (id )["actor" ]
151- # max_dimension = self.get_object(id)["max_dimension"]
152- # if max_dimension == "points":
153- # self.SetColor(id, red, green, blue)
154- # else:
155- actor .GetProperty ().SetVertexColor ([red / 255 , green / 255 , blue / 255 ])
150+ max_dimension = self .get_object (id )["max_dimension" ]
151+ if max_dimension == "points" :
152+ self .SetColor (id , red , green , blue )
153+ else :
154+ actor .GetProperty ().SetVertexColor ([red / 255 , green / 255 , blue / 255 ])
156155 self .render ()
157156
158157 def SetBlocksVisibility (self , id , block_ids , visibility ):
0 commit comments