Экспорт URDF из FreeCAD
This commit is contained in:
parent
7cadf0741f
commit
45e0d29ea0
13 changed files with 267 additions and 98 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue