17 lines
590 B
Python
17 lines
590 B
Python
![]() |
import importDAE
|
||
|
import FreeCAD as App
|
||
|
from model.files_generator import FolderGenerator
|
||
|
from helper.is_solid import is_object_solid
|
||
|
|
||
|
|
||
|
class ExportUseCase:
|
||
|
def call(path):
|
||
|
meshes = {}
|
||
|
for el in App.ActiveDocument.Objects:
|
||
|
if (is_object_solid(el)):
|
||
|
importDAE.export([el], path + '/' + FolderGenerator.SDF.value +
|
||
|
'/' + FolderGenerator.MESHES.value + '/' + el.Label + '.dae')
|
||
|
meshes[el.Label] = '/' + FolderGenerator.MESHES.value + \
|
||
|
'/' + el.Label + '.dae'
|
||
|
return meshes
|