Version: 
Back to list

Algo :: repackUV

Synopsis

   Pack existing UV (create atlas)

GUI Dialog

   

Script function

   algo.repackUV(occurrences[, channel[, shareMap[, resolution[, padding[, uniformRatio[, iterations[, removeOverlaps]]]]]]]) -> failedParts

Parameters

   occurrences (OccurrenceList) : Occurrences of part to process
   channel (Int[optional] : The UV channel to repack
   shareMap (Boolean[optional] : If True, the UV of all given parts will be packed together
   resolution (Int[optional] : Resolution wanted for the final map
   padding (Int[optional] : Set the padding (in pixels) between UV islands
   uniformRatio (Boolean[optional] : If true, UV of different part will have the same ratio
   iterations (Int[optional] : Fitting iterations
   removeOverlaps (Boolean[optional] : Remove overlaps to avoid multiple triangles UVs to share the same pixel

Return value

   failedParts (OccurrenceList) : Parts which failed to be repacked at this resolution (try to increase the resolution or decrease the padding)