et { vertices, faces } = polyhedrons[currentPolyhedronType];
    if (polyhedrons[currentPolyhedronType].generate) {
        ({ vertices, faces } = polyhedrons[currentPolyhedronType].generate(currentParams));
    } else if (currentParams.subdivisions > 0) {
        ({ vertices, faces } = subdivide(vertices, faces, currentParams.subdivisions));
        vertices = normalize(vertices);
    }

    for (const face of faces) {
        ctx.beginPath();
        const [x, y] = project(...vertices[face[0]]);
        c