INNER CODE UNIT · Python

generate_vertices

bernhardstrobl/Pico3D · Blender/pico3d_blender_exporter.py:181

    def generate_vertices(self, context, mesh, modelname, max_triangles, is_chunk):
        
        scaling_factor = context.scene.scaling_factor
        model_offset_z = 0 # to push model back
        fixed_point_factor = context.scene.fixed_point_factor
        store_ram = context.scene.store_ram
        reduced_range = context.scene.fixed_point_16
        
        
        # We need the triangles
        mesh.calc_loop_triangles()
        i = 0;
        triangles = 0;
        vertices = ""
        
        #Vertex Colors
        if 'Col' in mesh.vertex_colors:
            colors = mesh.vertex_colors['Col']

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…