d="paramControls"></div>
    </div>
    <canvas id="canvas"></canvas>
<script>
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');

let rotationX = 0, rotationY = 0;
let isDragging = false;
let lastX, lastY;
let currentParams = {};
let currentPolyhedronType = 'tetrahedron';

const polyhedrons = {
    tetrahedron: {
        params: { subdivisions: { min: 0, max: 4, value: 0, step: 1 } },
        vertices: [
            [1, 1, 1], [-1, -1, 1], [-1, 1, -1], [1, -1, -1]
      