def writeUvVert(co): x = bin_ops.writeSingle(co[0]) # X pos y = bin_ops.writeSingle(co[1]) # Y pos coords = bytearray() coords.extend(x) coords.extend(y) return coords
def writeXYZ(co): x = bin_ops.writeSingle(co[0]) # X pos y = bin_ops.writeSingle(co[1]) # Y pos z = bin_ops.writeSingle(co[2]) # Z pos coords = bytearray() coords.extend(x) coords.extend(y) coords.extend(z) return coords
def write4Float(co): x = bin_ops.writeSingle(co[0]) # X pos y = bin_ops.writeSingle(co[1]) # Y pos z = bin_ops.writeSingle(co[2]) # Z pos w = bin_ops.writeSingle(co[3]) # W pos coords = bytearray() coords.extend(x) coords.extend(y) coords.extend(z) coords.extend(w) return coords