Skip to content

Instantly share code, notes, and snippets.

View willstott101's full-sized avatar
🥁

Will Stott willstott101

🥁
View GitHub Profile
@willstott101
willstott101 / stl_obj_converter.py
Last active May 28, 2021 18:15
.stl to .obj file converter and slight api.
from struct import unpack
import math
try:
import numpy as np
except ImportError:
print('numpy is required to enable STL transformation.')
class _STLFile(object):
name = None
from itertools import chain
class DeepPartial(object):
def __init__(self, func, *args, **kwargs):
self.func = func
self.args = args
self.kwargs = kwargs
def _call(self, callee):