Document kit

Cut Plan Optimizer Sheets

2 document sets in one download.

Cut Plan Optimizer, Glass Cut Layout Planner.

Version 1.0.0 · Teranite Systems

$18.00 USD, one-time

Buying this pack gets you a licence to use it, not ownership of the files.

Read the full licence

Buy for $18.00

  • Download right after payment, and by email.
  • Opens in your own spreadsheet, calendar and text programs.
  • Refund within 14 days, for any reason.
  • Payment is handled by Stripe.

What it does

  • Cut Plan Optimizer: Takes a list of required pieces with dimensions and standard stock sheet sizes, then computes a cutting layout that minimizes waste using first-fit-decreasing packing with kerf allowance. Outputs which pieces go on which sheet and the total waste percentage.
  • Glass Cut Layout Planner: It calculates the most efficient placement of cuts on standard sheet sizes. It outputs the remaining usable scrap dimensions.

What's inside

  • Cut Plan Optimizer: README.md, example_cuts.json, index.html, optimizer.js.
  • Glass Cut Layout Planner: calculator.html, logic.js, styles.css.

With a README and the Teranite Facet Buyer Licence.

Sample

Cut Plan Optimizer

Takes a list of required pieces with dimensions and standard stock sheet sizes, then computes a cutting layout that minimizes waste using first-fit-decreasing packing with kerf allowance. Outputs which pieces go on which sheet and the total waste percentage.

Files: README.md, example_cuts.json, index.html, optimizer.js. optimizer.js, start of the file:

function runOptimizer() {
    const stockW = parseFloat(document.getElementById('stockW').value);
    const stockH = parseFloat(document.getElementById('stockH').value);
    const kerf = parseFloat(document.getElementById('kerf').value);
    const piecesInput = document.getElementById('pieceList').value;
    const resultsDiv = document.getElementById('results');

    let pieces = [];
    try {
        pieces = JSON.parse(piecesInput);
    } catch (e) {
        alert('Invalid JSON in piece list');
        return;
    }

    // First-Fit-Decreasing: Sort by area descending
    pieces.sort((a, b) => (b.w * b.h) - (a.w * a.h));

    const sheets = [];

    function createSheet() {
        return {
            width: stockW,
            height: stockH,
            usedY: 0,
            currentRowH: 0,
            currentRowX: 0,
            placed: []
        };
    }

    sheets.push(createSheet());

    pieces.forEach(p => {
        let placed = false;
        const pw = p.w + kerf;
        const ph = p.h + kerf;

        for (let sheet of sheets) {
            // Check if piece fits in current row
            if (sheet.currentRowX + pw <= sheet.width && sheet.usedY + p

Glass Cut Layout Planner

It calculates the most efficient placement of cuts on standard sheet sizes. It outputs the remaining usable scrap dimensions.

Files: calculator.html, logic.js, styles.css. logic.js, start of the file:

document.getElementById('addCutBtn').addEventListener('click', () => {
    const list = document.getElementById('cutList');
    const row = document.createElement('div');
    row.className = 'cut-row';
    row.innerHTML = `
        <input type="number" class="cutW" placeholder="Width">
        <input type="number" class="cutH" placeholder="Height">
        <input type="number" class="cutQty" placeholder="Qty">
        <button class="remove-btn" onclick="this.parentElement.remove()">×</button>
    `;
    list.appendChild(row);
});

document.getElementById('calcBtn').addEventListener('click', () => {
    const sW = parseFloat(document.getElementById('sheetW').value);
    const sH = parseFloat(document.getElementById('sheetH').value);
    const kerf = parseFloat(document.getElementById('kerf').value);

    const cutRows = document.querySelectorAll('.cut-row');
    let pieces = [];

    cutRows.forEach(row => {
        const w = parseFloat(row.querySelector('.cutW').value);
        const h = parseFloat(row.querySelector('.cutH').value);
        const q = parseInt(row.querySelector('.cutQty').value);
        if (w && h && q) {
            for (let i = 0; i < q; i++) pieces.push(

Requirements

  • A program that opens the file types listed.
  • Checked: every file opens and parses, and any spreadsheet formulas compute in Microsoft Excel for Windows.
  • Not opened in other programs.

Install

Unzip the download, then the zip inside it. Each folder inside holds one set of files; open or import them in your own programs and work on a copy.

Licence

One licence covers one person. Your finished work is yours. Do not share or resell the files.

How it is made

Facet Packs are made with Teranite's own software tools, some of them written with help from AI, and rendered or built by standard software. They contain no AI-generated images.

Support

Questions, or a fault: support@teranitesystems.com. We reply within 2 business days.

More from Spreadsheet templates

See all