Экспорт URDF из FreeCAD

This commit is contained in:
IDONTSUDO 2023-04-24 19:42:48 +00:00 committed by Igor Brylyov
parent 7cadf0741f
commit 45e0d29ea0
13 changed files with 267 additions and 98 deletions

View file

@ -1,15 +1,15 @@
import importDAE
# import importDAE
import FreeCAD as App
from model.files_generator import FolderGenerator
from helper.is_solid import is_object_solid
import Mesh
class ExportUseCase:
def call(path):
meshes = {}
for el in App.ActiveDocument.Objects:
if (is_object_solid(el)):
importDAE.export([el], path + '/' + FolderGenerator.SDF.value +
Mesh.export([el], path + '/' + FolderGenerator.SDF.value +
'/' + FolderGenerator.MESHES.value + '/' + el.Label + '.dae')
meshes[el.Label] = '/' + FolderGenerator.MESHES.value + \
'/' + el.Label + '.dae'