Interface version 1.1.0

Interface version 1.1.0

Interface version 1.1.0

This version is used by Unwrella-IO 1.3.0 (and newer) and Packer-IO 1.4.0 (and newer).

Structure for Input Data

uint32 messageSize # size of the message, not including this uint32 itself
uint32 versionMajor # this is the version of the INTERFACE, not the app or the script
uint32 versionMinor
uint32 versionPatch
uint32 width
uint32 height
uint32 packMode # 0: efficient, 1: high quality, 2: turbo
double padding
bool useDensity
double density
bool combine
bool rescale
bool preRotate
bool fullRotation
uint32 rotation # 0: 0°, 1: 90°, 2: 45°, 3: 23°
bool dynamicTiling
uint32 tilesX
uint32 tilesY
uint32 numObjects
  # loop per object
  uint32 id
  uint32 stringSize
  string name
  uint32 unwrapMode # 0: organic, 1: hard surface, 2: mosaic, 3: pack, 4: keep existing
  double stretch
  double hardAngle
  bool keepSeams
  bool cutConcave
  double angleConcave
  bool cutConvex
  double angleConvex
  bool cutHoles
  uint32 numGeoVertices
    # loop per geoVertex
    double geoX
    double geoY
    double geoZ
  uint32 numUVVertices
    # loop per uvVertex
    double uvX
    double uvY
  uint32 numGeoIndices
    # loop per geoIndex
    uint32 geoIndex
  uint32 numUVIndices
    # loop per uvIndex
    uint32 uvIndex
  uint32 numPolygons
    # loop per polygon
    uint32 deg
  uint32 numPinned
    # loop per pin
    uint32 index of pinned
  uint32 numCustomSeams
    # loop per custom seam
    uint32 seamVert0
    uint32 seamVert1

Structure for Output Data

Progress Message

uint32 messageSize # size of the message, not including this uint32 itself
uint32 messageType # 1 MESSAGE_PROGRESS
double progress

Final message with Results

uint32 messageSize # size of the message, not including this uint32 itself
uint32 messageType # 0 MESSAGE_SUCCESS
uint32 numObjects
  (loop per object)
  uint32 id
  uint32 numUvVertices
    (loop per uvVertex)
    double uvX
    double uvY
  uint32 numUVIndices
    (loop per uvIndex)
    uint32 uvIndex
double coverage
double density

Final Message with Error

uint32 messageSize # size of the message, not including this uint32 itself
uint32 messageType # 2 MESSAGE_ERROR
uint32 stringSize
string errorMessage