Exemplo n.º 1
0
def saveMeshes(filename, objects):
	ext = filename[filename.rfind('.'):].lower()
	if ext == '.stl':
		stl.saveScene(filename, objects)
		return
	if ext == '.amf':
		amf.saveScene(filename, objects)
		return
	print 'Error: Unknown model extension: %s' % (ext)
Exemplo n.º 2
0
def saveMeshes(filename, objects):
    ext = os.path.splitext(filename)[1].lower()
    if ext == '.stl':
        stl.saveScene(filename, objects)
        return
    if ext == '.amf':
        amf.saveScene(filename, objects)
        return
    print 'Error: Unknown model extension: %s' % (ext)
Exemplo n.º 3
0
def saveMeshes(filename, objects):
	ext = os.path.splitext(filename)[1].lower()
	if ext == '.stl':
		stl.saveScene(filename, objects)
		return
	if ext == '.amf':
		amf.saveScene(filename, objects)
		return
	print 'Error: Unknown model extension: %s' % (ext)
Exemplo n.º 4
0
def saveMeshes(filename, objects):
	"""
	Save a list of objects into the file given by the filename. Use the filename extension to find out the file format.
	"""
	ext = os.path.splitext(filename)[1].lower()
	if ext == '.stl':
		stl.saveScene(filename, objects)
		return
	print 'Error: Unknown model extension: %s' % (ext)
Exemplo n.º 5
0
def saveMeshes(filename, objects):
    """
	Save a list of objects into the file given by the filename. Use the filename extension to find out the file format.
	"""
    ext = os.path.splitext(filename)[1].lower()
    if ext == '.stl':
        stl.saveScene(filename, objects)
        return
    print 'Error: Unknown model extension: %s' % (ext)
Exemplo n.º 6
0
def saveMeshes(filename, objects):
    ext = filename[filename.rfind('.'):].lower()
    if ext == '.stl':
        stl.saveScene(filename, objects)
        return
    if ext == '.amf':
        amf.saveScene(filename, objects)
        return
    print 'Error: Unknown model extension: %s' % (ext)