 isRedrawScheduled = false;
            activeVisualizers.forEach(viz => viz.draw());
        }

        class BezierVisualizer {
            constructor(config) {
                this.containerElement = config.containerElement;
                this.title = config.title || "Bézier Patch Visualizer";
                this.initialPoints = config.initialPoints; 
                this.showSubdividedView = config.showSubdividedView !== undefined ? config.showSubdividedView : true;
                this.initialSubd