CUT PATTERN PROJECTOR
Web-based prototype for projecting SVG cut patterns onto a physical cutting mat through a camera or projector setup. The projection is based on a four-point homography: four corner handles are placed on grid crossings of the mat, and the real width and height of that rectangle are entered in millimetres. The prototype converts the SVG geometry into polylines in millimetres, including paths, arcs, rectangles, circles, ellipses and dashed strokes, and maps them onto the calibrated area. Loaded patterns can be moved, rotated, mirrored and scaled, and their stroke colours can be toggled and recoloured per group. A grid in millimetres is drawn over the projection area, and the calibration and display settings are stored in the browser. The prototype is intended for testing pattern projection, for teaching pattern construction, and as a starting point for further projection tools.

LIVE : https://code.turboflip.de/run/63c32432ba96f175/
CODE : https://code.turboflip.de/p/63c32432ba96f175
- Version: v1.0
- Calibration with four corner handles and real-world width and height in millimetres
- SVG import by file picker or drag and drop, plus a built-in test pattern
- Pattern placement with position, rotation, mirroring and scaling
- Per-colour group visibility and display colour
- Millimetre grid with adjustable spacing, also shown in projection mode
- Fullscreen mode and keyboard control for corners and patterns
- Settings saved in local storage
- Tech: HTML, CSS, JavaScript, Canvas 2D, SVG DOM, localStorage
- Requires: modern browser with Canvas 2D and fullscreen support, SVG files, a camera or projector for the physical projection