INNER CODE UNIT · Python
x
bernhardstrobl/Pico3D · Blender/pico3d_blender_exporter.py:215
x = mesh.vertices[tri.vertices[0]].co.x * scaling_factor
y = mesh.vertices[tri.vertices[0]].co.z * scaling_factor
z = (-mesh.vertices[tri.vertices[0]].co.y - model_offset_z) * scaling_factor
#Convert vertex points to fixed point
x = int(x * fixed_point_factor)
y = int(y * fixed_point_factor)
z = int(z * fixed_point_factor)
vertices += "{ " + str(x) + ", " + str(y) + ", " + str(z) + "},"
x = mesh.vertices[tri.vertices[1]].co.x * scaling_factor
y = mesh.vertices[tri.vertices[1]].co.z * scaling_factor
z = (-mesh.vertices[tri.vertices[1]].co.y - model_offset_z) * scaling_factor
#Convert vertex points to fixed point