Version: 
Back to list

Scene :: createPartsFromMeshes

Synopsis

   Create a set of Parts given meshes and occurrences

GUI Dialog

   

Script function

   scene.createPartsFromMeshes(occurrences, meshes) -> parts

Parameters

   occurrences (OccurrenceList) : The occurrence which will contains the part component of the mesh at the same index
   meshes (MeshList) : List of mesh to create part, if the mesh is invalid (e.g 0) no part will be created and 0 will be returned in the parts list at this index

Return value

   parts (PartList) : List of created parts components, if there is no mesh at an index, no part is created and the identifier is 0