Zulko/vapory

Polygon sample

kumari-jaya opened this issue · 0 comments

Trying to create a polygon
Polygon(4,(3.0,0,0,0),(1.0,1.0,1), (2,2,2),(3,3,3),Texture( Pigment( 'color', [1,1,1])),)

But receiving an error:

---> 11 scene.render('pawn.png', remove_temp=False)

/usr/local/lib/python3.9/site-packages/vapory/vapory.py in render(self, outfile, height, width, quality, antialiasing, remove_temp, auto_camera_angle)
99 self.camera = self.camera.add_args(['right', [1.0*width/height, 0,0]])
100
--> 101 return render_povstring(str(self), outfile, height, width,
102 quality, antialiasing, remove_temp)
103

/usr/local/lib/python3.9/site-packages/vapory/io.py in render_povstring(string, outfile, height, width, quality, antialiasing, remove_temp)
112
113 if process.returncode:
--> 114 raise IOError("POVRay rendering failed with the following error: "+err)
115
116 if return_np_array:

TypeError: can only concatenate str (not "bytes") to str