INNER CODE UNIT · Python

y

bernhardstrobl/Pico3D · Blender/pico3d_blender_exporter.py:221

            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
            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) + "},"
            

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…