wavefront obj export
This commit is contained in:
parent
afbb9e7427
commit
b76f35a4a5
8 changed files with 80 additions and 7 deletions
|
@ -196,7 +196,7 @@ class OpenGLEngine(Base3DEngine):
|
|||
|
||||
worker = OpenGLWorker()
|
||||
|
||||
def render(self) -> bytes:
|
||||
def render(self, filename=None) -> bytes:
|
||||
return self.worker.render(self.width, self.height, self.gl_scale, self.gl_offset, self.background_rgb,
|
||||
np.vstack(self.vertices).astype(np.float32).tobytes() if self.vertices else b'')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue