@@ -97,7 +97,8 @@ class Ring(Geometry):
9797 Optional thetaStart and thetaLength by default gives a full ring (2pi angle)
9898 """
9999
100- def __init__ (self , innerRadius , outerRadius , thetaStart = 0 , thetaLength = np .pi * 2 ):
100+ def __init__ (self , innerRadius , outerRadius , thetaStart = 0 ,
101+ thetaLength = np .pi * 2 ):
101102 super (Ring , self ).__init__ ()
102103 self .innerRadius = innerRadius
103104 self .outerRadius = outerRadius
@@ -138,36 +139,6 @@ def lower(self, object_data):
138139 u"thetaLength" : self .thetaLength
139140 }
140141
141-
142- # class Text(Geometry):
143-
144- # def __init__(self, text, font='helvetiker', size=100, height=50,
145- # curveSegments=12, bevelEnabled=False, bevelThickness=10,
146- # bevelSize=8, bevelSegments=3):
147- # super(Text, self).__init__()
148- # self.text = text
149- # self.font = font
150- # self.size = size
151- # self.curveSegments = curveSegments
152- # self.bevelEnabled = bevelEnabled
153- # self.bevelThickness = bevelThickness
154- # self.bevelSize = bevelSize
155- # self.bevelSegments = bevelSegments
156-
157- # def lower(self, object_data):
158- # {
159- # u"uuid": self.uuid,
160- # u"type": u"_textgeometry",
161- # u"text": self.text,
162- # u"font": self.font,
163- # u"size": self.size,
164- # u"height": self.height,
165- # u"curveSegments": self.curveSegments
166- # }
167-
168-
169-
170-
171142class Plane (Geometry ):
172143
173144 def __init__ (self , width = 1 , height = 1 , widthSegments = 1 , heightSegments = 1 ):
@@ -217,11 +188,10 @@ def lower(self, object_data):
217188 }
218189
219190
220-
221191class MeshMaterial (Material ):
222192
223193 def __init__ (self , color = 0xffffff , reflectivity = 0.5 , map = None ,
224- transparent = False , ** kwargs ):
194+ transparent = False , ** kwargs ):
225195 super (MeshMaterial , self ).__init__ ()
226196 self .color = color
227197 self .reflectivity = reflectivity
@@ -285,20 +255,18 @@ def __init__(self):
285255 def lower (self , object_data ):
286256 return {
287257 u"uuid" : self .uuid ,
288- # hacky, needs a nominal "url" filed to get rid of JS side warning,
289- # so putting an empty one here
290258 u"url" : ""
291259 }
292260
293261
294262class TextTexture (Texture ):
295263
296- def __init__ (self , text , font_size = 96 , font_face = 'sans-serif' ,
297- width = 200 , height = 100 , position = [10 , 10 ]):
264+ def __init__ (self , text , font_size = 96 , font_face = 'sans-serif' ,
265+ width = 200 , height = 100 , position = [10 , 10 ]):
298266 super (TextTexture , self ).__init__ ()
299267 self .text = text
300- # font_size will be passed to the JS side as is; however if the text
301- # width exceeds canvas width, font_size will be reduced.
268+ # font_size will be passed to the JS side as is; however if the
269+ # text width exceeds canvas width, font_size will be reduced.
302270 self .font_size = font_size
303271 self .font_face = font_face
304272 self .width = width
0 commit comments