Usage
Stl2Obj - root class
Base convert files example
from stl2obj import Stl2Obj
src = 'path-to-src-file' # .stl or .obj
dst = 'path-to-dst-file' # .stl or .obj
Stl2Obj().convert(src, dst)
convert
function takes:
src -
str
path to .stl or .obj filedst -
str
path to output .obj or .stl filedebug -
bool
disable c++ coutcallback -
object
callback function in python, defaultNone
progress_callback -
object
called when part of the file processing has been completed, it is always 1, so do in your project
def progress_callback(self, value: int):
self.total_progress += value
stl_mode_converter
function takes:
src -
str
path to .stl filedst -
str
path to output .stl filemode -
str
ASCII, BIN or AUTOcallback -
object
callback function in python, defaultNone
progress_callback -
object
like inconvert
function