예제 #1
0
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 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
예제 #3
0
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 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
예제 #5
0
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
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