<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CutPath CAD]]></title><description><![CDATA[Browser-native CNC plasma, laser & router CAD/CAM studio + 10 free DXF/STL/G-code tools at cutpathcad.com]]></description><link>https://cutpathcad.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/6b0f21cc8e40e43003c2cc60/bf57f888-2a5e-4d36-ba93-861dc56735d0.png</url><title>CutPath CAD</title><link>https://cutpathcad.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 23:40:46 GMT</lastBuildDate><atom:link href="https://cutpathcad.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Free Pipe & Tube Notching Template & Rotary CNC Plasma DXF Generator (Inner-Wall Zero-Grind Fit-Up)]]></title><description><![CDATA[Generate 1:1 printable Letter/A4 wrap templates and strict AutoCAD R12 rotary DXF files for DOM roll cages, stainless exhausts, and Schedule 40 pipe.]]></description><link>https://cutpathcad.hashnode.dev/free-pipe-tube-notching-template-rotary-cnc-plasma-dxf-generator-inner-wall-zero-grind-fit-up</link><guid isPermaLink="true">https://cutpathcad.hashnode.dev/free-pipe-tube-notching-template-rotary-cnc-plasma-dxf-generator-inner-wall-zero-grind-fit-up</guid><category><![CDATA[cad]]></category><category><![CDATA[cnc]]></category><category><![CDATA[TypeScript]]></category><category><![CDATA[engineering]]></category><category><![CDATA[#manufacturing]]></category><dc:creator><![CDATA[CutPath CAD]]></dc:creator><pubDate>Tue, 01 Dec 2026 23:29:24 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6b0f21cc8e40e43003c2cc60/cb913078-7e3c-4b86-a93b-1262a278b2f3.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Whether you are wrapping a paper coping template around 1.75" DOM roll-cage tubing with a grinder or cutting multi-end chassis tubes on a rotary CNC plasma axis in SheetCam, getting a tight, weld-ready fishmouth notch comes down to two details that almost every free online calculator ignores: <strong>wall thickness</strong> and <strong>exact AutoCAD R12 DXF hygiene</strong>.</p>
<p>We just shipped the <strong><a href="https://www.cutpathcad.com/tube-notch-dxf">CutPath CAD Pipe &amp; Tube Notcher &amp; Rotary DXF Generator</a></strong> — 100% free in your browser, with zero sign-up required.</p>
<h3>1. Inner-Wall Zero-Grind vs. Outer-Wall OD Fit-Up</h3>
<p>When two thick-walled tubes meet at 30°–60°, the inside wall of the branch tube strikes the receiver tube long before the outside wall does:</p>
<table>
<thead>
<tr>
<th>Tube Spec</th>
<th>Miter Angle</th>
<th>Inner-Wall Interference Cleared</th>
<th>Best Fit Mode</th>
</tr>
</thead>
<tbody><tr>
<td>1.75" × 0.120" DOM Roll Cage</td>
<td>45°</td>
<td><strong>0.625" (15.9 mm)</strong></td>
<td>Inner-Wall Zero-Grind</td>
</tr>
<tr>
<td>1-1/2" Sch 40 Pipe (1.900" × 0.145")</td>
<td>90°</td>
<td><strong>0.354" (9.0 mm)</strong></td>
<td>Inner-Wall Zero-Grind</td>
</tr>
<tr>
<td>2.00" × 0.065" 304SS Exhaust</td>
<td>30°</td>
<td><strong>0.289" (7.3 mm)</strong></td>
<td>Outer-Wall OD (TIG Bevel)</td>
</tr>
<tr>
<td>3.00" × 0.250" Axle Truss</td>
<td>90°</td>
<td><strong>0.691" (17.5 mm)</strong></td>
<td>Inner-Wall Zero-Grind</td>
</tr>
</tbody></table>
<p>CutPath overlays both curves right in the viewport — crisp white for your active cut profile and dashed green for the naive Outer-Wall OD reference — so you can see the exact grinding time you save before striking an arc.</p>
<h3>2. Built-In Standard Tubing &amp; ASME Schedule 40 Presets</h3>
<p>No need to look up real pipe ODs vs. nominal pipe sizes (like 1-1/2" Schedule 40 actually measuring <code>1.900"</code> OD × <code>0.145"</code> wall). Pick from 14 standard DOM roll-cage, chromoly, stainless exhaust, and ASME Schedule 40 / 80 dropdown sizes, or start from 6 shop presets:</p>
<ul>
<li><strong>1.75" DOM 45° Roll Cage</strong> (<code>0.120"</code> wall)</li>
<li><strong>Double-End Spreader Bar</strong> (independent End 1 &amp; End 2 miters + <code>0°–180°</code> phase twist clocking)</li>
<li><strong>2.0" Stainless Exhaust 30° Y-Merge</strong> (<code>16ga</code> / <code>0.065"</code> wall)</li>
<li><strong>1.5" Schedule 40 90° Handrail Saddle</strong> (<code>1.900"</code> OD × <code>0.145"</code> wall)</li>
<li><strong>1.5" Chromoly 60° Eccentric Offset</strong> (non-zero centerline offset)</li>
<li><strong>3.0" Heavy-Wall Axle Saddle</strong> (<code>0.250"</code> wall)</li>
</ul>
<h3>3. Ready for Both Paper Wraps &amp; Rotary CNC Plasma Tables</h3>
<ul>
<li><strong>1:1 Printable Multi-Page Wrap Template (US Letter / A4):</strong> Prints at exact 100% scale with <code>0° TOP / 90° SIDE / 180° BTM / 270° SIDE</code> clocking marks, a <code>+15 mm</code> tape overlap tab, and a physical <code>1.000"</code> + <code>25.0 mm</code> calibration ruler so you can check your printer output with calipers in two seconds.</li>
<li><strong>Strict AutoCAD R12 (<code>AC1009</code>) Rotary DXF:</strong> Single closed contour, <code>X = 0..π·OD</code>, zero splines, zero open loops, and optional rotary plasma kerf compensation — ready to import straight into SheetCam Rotary Plugin, Langmuir FireControl, Mach3/Mach4, or LightBurn Rotary.</li>
<li><strong>1-Click Tube-Saddle Gusset Handoff:</strong> Need corner gussets or shock tabs that match your exact receiver tube? One click sends your tube OD straight into the <strong><a href="https://www.cutpathcad.com/bracket-dxf">CutPath Welding Gusset &amp; Tab Generator</a></strong>, and from there directly into <strong><a href="https://www.cutpathcad.com/sheet-nesting">4×8 / 5×10 Plate Nesting</a></strong>.</li>
</ul>
<h3>Resources &amp; Guides</h3>
<ul>
<li>Launch the free tool: <a href="https://www.cutpathcad.com/tube-notch-dxf">https://www.cutpathcad.com/tube-notch-dxf</a></li>
<li>Pipe &amp; Tube Coping Fit-Up Guide: <a href="https://www.cutpathcad.com/tools/pipe-tube-notching-coping-template-generator-guide">https://www.cutpathcad.com/tools/pipe-tube-notching-coping-template-generator-guide</a></li>
<li>Rotary CNC Plasma Tube DXF Guide: <a href="https://www.cutpathcad.com/tools/rotary-cnc-plasma-tube-miter-dxf-guide">https://www.cutpathcad.com/tools/rotary-cnc-plasma-tube-miter-dxf-guide</a></li>
<li>Roll-Cage Gussets &amp; Shock Tabs: <a href="https://www.cutpathcad.com/bracket-dxf">https://www.cutpathcad.com/bracket-dxf</a></li>
<li>4×8 / 5×10 CNC Sheet Nesting: <a href="https://www.cutpathcad.com/sheet-nesting">https://www.cutpathcad.com/sheet-nesting</a></li>
</ul>
]]></content:encoded></item><item><title><![CDATA[Free CNC Plasma Welding Gusset, 1.75" DOM Shock Tab & Bent L-Bracket DXF Generator (Strict AutoCAD R12)]]></title><description><![CDATA[Corner weld-bead copes, concave circular tube saddles, dimple-die holes, 1.5x plasma hole audits, and 1x–24x packed R12 DXF + 1:1 LightBurn SVG.]]></description><link>https://cutpathcad.hashnode.dev/free-cnc-plasma-welding-gusset-1-75-dom-shock-tab-bent-l-bracket-dxf-generator-strict-autocad-r12</link><guid isPermaLink="true">https://cutpathcad.hashnode.dev/free-cnc-plasma-welding-gusset-1-75-dom-shock-tab-bent-l-bracket-dxf-generator-strict-autocad-r12</guid><category><![CDATA[#manufacturing]]></category><dc:creator><![CDATA[CutPath CAD]]></dc:creator><pubDate>Tue, 01 Dec 2026 22:55:01 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6b0f21cc8e40e43003c2cc60/1220ad39-5428-41f3-be23-4d8909eef334.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Every steel fabrication shop, off-road chassis builder, and CNC plasma operator redraws the exact same six parts every week: 90° corner welding gussets, roll-cage tube saddles, weld-on shock tabs, 1/2" recovery shackles, slotted motor plates, and 90° press-brake L-brackets.</p>
<p>We built a deterministic, zero-dependency TypeScript CAD kernel (<code>src/lib/cad/bracketDxf.ts</code>) inside <strong>CutPath CAD</strong> that generates all six parametric geometries in the browser, runs live plasma 1.5× hole-to-thickness and structural ear-wall audits, packs 1×–24× cut sheets with <code>K/2</code> kerf compensation, and exports strict <strong>AutoCAD R12 (<code>AC1009</code>)</strong> closed polylines + 1:1 LightBurn SVGs with zero open loops and zero splines:</p>
<ul>
<li>Live free generator: <a href="https://www.cutpathcad.com/bracket-dxf">https://www.cutpathcad.com/bracket-dxf</a></li>
<li>Gusset &amp; off-road tube-saddle plasma guide: <a href="https://www.cutpathcad.com/tools/welding-gusset-offroad-tab-dxf-generator-guide">https://www.cutpathcad.com/tools/welding-gusset-offroad-tab-dxf-generator-guide</a></li>
<li>Slotted motor mount &amp; bent L-bracket flat-pattern guide: <a href="https://www.cutpathcad.com/tools/slotted-motor-mount-l-bracket-dxf-flat-pattern-guide">https://www.cutpathcad.com/tools/slotted-motor-mount-l-bracket-dxf-flat-pattern-guide</a></li>
<li>4×8 / 5×10 steel sheet nesting workbench: <a href="https://www.cutpathcad.com/sheet-nesting">https://www.cutpathcad.com/sheet-nesting</a></li>
</ul>
<h2>Four Real-World Fabrication Details Generic Drawing Scripts Miss</h2>
<h3>1. The 90° Corner Weld-Bead Cope Notch</h3>
<p>If you cut a sharp 90° triangular gusset and try to weld it into a frame corner that already has a MIG or TIG fillet weld, the sharp corner hits the bead and lifts both legs 1/8" off the frame. Our gusset builder cuts a concave circular weld-bead cope (<code>3/8"</code>–<code>1/2"</code> radius) centered at <code>(0, 0)</code> directly into the closed CCW outer contour so both weld legs seat flush with zero angle-grinder fitting.</p>
<h3>2. Exact Concave DOM Tube Saddles (1.50", 1.75", 2.00", 3.00")</h3>
<p>Off-road shock tabs welded to round DOM roll-cage or axle tubing need an exact circular arc matching tube radius <code>R = OD / 2</code>. When <code>R</code> exceeds half the tab base width <code>halfW</code>, the entire base becomes a single circular arc centered at <code>(0, -sqrt(R^2 - halfW^2))</code>. When the tab base is wider than the tube (e.g., a <code>2.00"</code> wide tab straddling <code>1.75"</code> DOM tubing), the kernel automatically blends crisp outer weld feet into a centered concave arc of radius <code>R</code> across <code>[-saddleSpan, +saddleSpan]</code>, keeping the outer polygon strictly simple and non-self-intersecting.</p>
<h3>3. Tangent-Locked Ear Geometry &amp; Tear-Out Audits</h3>
<p>Rather than approximating a tab ear with arbitrary Bezier splines (which SheetCam and Langmuir FireControl reject or facet unpredictably), we solve the analytical outward tangent from <code>(+halfW, 0)</code> to the bolt ear circle centered at <code>(0, holeCy)</code> with radius <code>earR</code>:</p>
<p><code>phi = atan2(-holeCy, halfW)</code><br /><code>alpha = acos(earR / hypot(halfW, holeCy))</code><br /><code>rightTanAngle = phi + alpha</code></p>
<p>We then check both <strong>radial ear wall margin (<code>&gt;= 0.75x</code> bolt diameter)</strong> and the <strong>Hypertherm / Razorweld <code>1.5x</code> plasma hole-to-thickness rule</strong> live before download.</p>
<h3>4. Press-Brake Bend Deduction &amp; Semicircular Bend Reliefs</h3>
<p>For 90° bent L-brackets, the flat pattern calculates exact Machinery's Handbook Bend Allowance <code>BA = (pi/2) * (R + K * T)</code>, Outside Setback <code>OSSB = R + T</code>, and Bend Deduction <code>BD = 2*OSSB - BA</code>, trims total blank length to <code>FlangeA + FlangeB - BD</code>, carves semicircular bend-relief notches into both edges along the bend line, and places the dashed <code>BEND_UP</code> scribe line on its own layer (omitted cleanly from Cut-Only plasma exports).</p>
<p>Try generating a batch of 4"×4" dimple-die gussets, 1.75" DOM shock tabs, slotted motor plates, or bent L-brackets free at <a href="https://www.cutpathcad.com/bracket-dxf">https://www.cutpathcad.com/bracket-dxf</a> — and send any single part straight into 4×8 or 5×10 plate nesting with one click.</p>
]]></content:encoded></item><item><title><![CDATA[Free ANSI Roller Chain Sprocket (#25–#60) & GT2/HTD Timing Pulley DXF Generator for Plasma, Laser & CNC]]></title><description><![CDATA[Exact ANSI B29.1 four-segment tooth geometry, 4-bolt go-kart hubs, even-link chain length solver, and strict AutoCAD R12 DXF + 1:1 LightBurn SVG export.]]></description><link>https://cutpathcad.hashnode.dev/free-ansi-roller-chain-sprocket-25-60-gt2-htd-timing-pulley-dxf-generator-for-plasma-laser-cnc</link><guid isPermaLink="true">https://cutpathcad.hashnode.dev/free-ansi-roller-chain-sprocket-25-60-gt2-htd-timing-pulley-dxf-generator-for-plasma-laser-cnc</guid><category><![CDATA[cnc]]></category><category><![CDATA[cad]]></category><category><![CDATA[engineering]]></category><category><![CDATA[Makers]]></category><category><![CDATA[3D printing]]></category><dc:creator><![CDATA[CutPath CAD]]></dc:creator><pubDate>Tue, 01 Dec 2026 22:35:13 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6b0f21cc8e40e43003c2cc60/906b5f15-874e-496a-a42c-40874d31d160.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Most online sprocket drawing scripts take a shortcut: they subtract circles of radius <code>Dr / 2</code> around a pitch polygon and call it a sprocket. The moment you plasma-cut or waterjet that DXF and wrap an ANSI #35 or #40 roller chain around it, the rollers climb the tooth flanks under load and chew through the chain in hours.</p>
<p>In <strong>CutPath CAD</strong>, we built a zero-dependency TypeScript kernel (<code>src/lib/cad/sprocketDxf.ts</code>) that computes the exact four-segment <strong>ANSI/ASME B29.1</strong> roller chain tooth profile alongside curvilinear <strong>GT2 / HTD 3M / HTD 5M</strong> timing belt pulleys, solves exact even chain-link lengths, applies outward <code>K/2</code> plasma/laser kerf compensation, and exports strict <strong>AutoCAD R12 (<code>AC1009</code>)</strong> closed polylines and 1:1 LightBurn SVGs right in the browser:</p>
<ul>
<li>Live free generator: <a href="https://www.cutpathcad.com/sprocket-dxf">https://www.cutpathcad.com/sprocket-dxf</a></li>
<li>Engineering &amp; plasma cutting reference: <a href="https://www.cutpathcad.com/tools/ansi-roller-chain-sprocket-dxf-generator-guide">https://www.cutpathcad.com/tools/ansi-roller-chain-sprocket-dxf-generator-guide</a></li>
<li>GT2 / HTD Timing Pulley Laser &amp; CNC Guide: <a href="https://www.cutpathcad.com/tools/gt2-htd-timing-pulley-dxf-laser-cnc-guide">https://www.cutpathcad.com/tools/gt2-htd-timing-pulley-dxf-laser-cnc-guide</a></li>
</ul>
<h2>The Exact Four-Segment ANSI B29.1 Tooth Form</h2>
<p>For a chain of pitch <code>P</code>, roller diameter <code>Dr</code>, and tooth count <code>N</code>, the pitch radius is <code>Rp = P / (2 * sin(pi / N))</code>. Every half-tooth from valley bottom to tooth tip consists of four exact C1-tangent segments:</p>
<ol>
<li><strong>Seating Curve (Radius <code>R</code>):</strong> Centered at the roller pitch center <code>(0, Rp)</code> with <code>R = (1.005 * Dr + 0.0762 mm) / 2</code>, sweeping through <code>90° - A</code> where <code>A = 35° + 60°/N</code>.</li>
<li><strong>Working Curve (Radius <code>E</code>):</strong> Centered opposite the seating arc along angle <code>-A</code> at distance <code>0.8 * Dr</code>, radius <code>E = R + 0.8 * Dr</code>, sweeping CCW by <code>B = 18° - 56°/N</code>.</li>
<li><strong>Straight Tangent Flank (<code>yz</code>):</strong> Tangent to the working arc for length <code>yz = Dr * (1.4 * sin(17° - 64°/N) - 0.8 * sin(B))</code>.</li>
<li><strong>Topping Curve (Radius <code>F</code>):</strong> Centered at <code>(W, -V) = (1.4 * Dr * cos(180°/N), -1.4 * Dr * sin(180°/N))</code> with radius <code>F = Dr * (0.8 * cos(B) + 1.4 * cos(17° - 64°/N) - 1.3025) - 0.0381 mm</code>, meeting the tooth centerline cleanly and clipped at the standard OD radius <code>P * (0.6 + cot(180°/N)) / 2</code>.</li>
</ol>
<p>Every constant locks together analytically with zero C1 discontinuity.</p>
<h2>Solving Even Roller Chain Links (Zero Half-Links)</h2>
<p>When designing a 2-sprocket drive (like a Mini-Bike <code>#40</code> <code>14T + 42T</code> 3:1 reduction), fixed shaft centers almost always land on a fractional or odd link count — forcing an unreliable offset half-link. Our Chain Drive Pair mode evaluates the standard chain length equation in pitches:</p>
<p><code>L_raw = 2*C/P + (N1 + N2)/2 + ((N2 - N1) / (2*pi))^2 * (P / C)</code></p>
<p>rounds up to the nearest <strong>even integer</strong> <code>L_even</code>, and solves the quadratic back for the exact center-to-center shaft spacing <code>C_exact</code> — plus draws both upper and lower tangent roller-chain spans live on the canvas.</p>
<h2>Why Strict AutoCAD R12 (AC1009) + K/2 Kerf Matters on Plasma &amp; Laser</h2>
<ul>
<li><strong>Zero Splines, Zero Open Loops:</strong> Every outer sprocket profile, ANSI/DIN keyway, hex bore, 4-bolt/6-bolt go-kart hub circle, and spoke cutout is serialized as closed <code>POLYLINE</code> (flag <code>70 = 1</code>) or <code>CIRCLE</code> entities on layer <code>CUT</code>. SheetCam, Langmuir FireControl, VCarve, and LightBurn import it at 1:1 scale with zero contour repair.</li>
<li><strong>Outward K/2 Kerf Compensation:</strong> A plasma arc removes <code>1.1 mm–1.6 mm</code> of steel; a CO2 laser removes <code>0.15 mm–0.20 mm</code> of Delrin. Offsetting the outer tooth loop outward by <code>+K/2</code> and inner bores inward by <code>-K/2</code> keeps roller pockets and shaft fits dead-on nominal.</li>
<li><strong>Live 1.5x Plasma Hole Audit:</strong> Checks the smallest shaft or hub bolt hole against your steel plate thickness (<code>11ga</code>, <code>3/16"</code>, <code>1/4"</code>, <code>3/8"</code>) and flags holes that should be drill-reamed after cutting.</li>
</ul>
<p>Try generating your next <code>#25</code>, <code>#35</code>, <code>#40</code>, <code>#50</code>, <code>#60</code>, <code>ISO 06B/08B</code>, or <code>GT2 / HTD</code> pulley free at <a href="https://www.cutpathcad.com/sprocket-dxf">https://www.cutpathcad.com/sprocket-dxf</a> — or measure exact kerf first with our free Kerf Test Card at <a href="https://www.cutpathcad.com/kerf-test-dxf">https://www.cutpathcad.com/kerf-test-dxf</a>.</p>
]]></content:encoded></item><item><title><![CDATA[Why Free Gear Generators Produce Uncuttable SPLINE DXFs — Computing Closed Involute Polylines & Meshing Center Distances in Browser CAD]]></title><description><![CDATA[Anyone who has tried cutting spur gears on a CNC plasma table, CNC router, or CO2 laser has hit the same frustrating wall: an online gear tool exports an…]]></description><link>https://cutpathcad.hashnode.dev/why-free-gear-generators-produce-uncuttable-spline-dxfs-computing-closed-involute-polylines-meshing-center-distances-in-browser-cad</link><guid isPermaLink="true">https://cutpathcad.hashnode.dev/why-free-gear-generators-produce-uncuttable-spline-dxfs-computing-closed-involute-polylines-meshing-center-distances-in-browser-cad</guid><category><![CDATA[engineering]]></category><category><![CDATA[geometry]]></category><category><![CDATA[#manufacturing]]></category><category><![CDATA[TypeScript]]></category><category><![CDATA[cad]]></category><dc:creator><![CDATA[CutPath CAD]]></dc:creator><pubDate>Tue, 01 Dec 2026 22:16:31 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6b0f21cc8e40e43003c2cc60/a0606e33-c6e1-4aa1-a2a2-f2c2c919a089.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Anyone who has tried cutting spur gears on a CNC plasma table, CNC router, or CO2 laser has hit the same frustrating wall: an online gear tool exports an SVG or DXF that looks fine on screen, then explodes into fragmented open vectors inside SheetCam, FireControl, or LightBurn—or cuts teeth so loose they rattle on the shaft.</p>
<p>Here is the fabrication geometry behind building cut-ready involute spur gears directly in browser TypeScript, powering CutPath CAD's free generator at <a href="https://www.cutpathcad.com/involute-gear-dxf">https://www.cutpathcad.com/involute-gear-dxf</a> .</p>
<h3>Undercut Limits &amp; Pressure Angle Trade-Offs</h3>
<p>At the standard ISO/AGMA <code>20°</code> pressure angle, the theoretical minimum tooth count without involute undercut is:</p>
<pre><code>z_min = ceil(2 / sin²(20°)) = 18 teeth
</code></pre>
<p>At <code>14.5°</code> (legacy imperial gear trains), <code>z_min</code> jumps to <code>32</code> teeth; switching to a heavy-duty <code>25°</code> pressure angle drops <code>z_min</code> to <code>12</code> teeth. Rather than silently generating weakened pinions, a CAM-aware gear generator should audit tooth counts live and either recommend positive profile shift (<code>x = +0.20</code> to <code>+0.35</code>) or a <code>25°</code> pressure angle.</p>
<h3>Real-World Fabrication Audits Before You Cut Metal or Wood</h3>
<p>Even mathematically exact involute curves can fail on a real machine. We run three live fabrication checks on every parameter change:</p>
<ol>
<li><strong>Undercut check:</strong> Flags pinions below <code>2 / sin²(alpha)</code> when profile shift is zero.</li>
<li><strong>Root valley clearance check:</strong> Compares the tooth gullet width against the configured cutter kerf (<code>0.15 mm</code> laser vs <code>1.40 mm</code> 45A plasma vs <code>3.175 mm</code> router endmill) so a wide plasma kerf never bridges across fine-module gear roots.</li>
<li><strong>Plasma hole-to-thickness ratio (<code>1.5×</code> rule):</strong> For steel plate presets (11ga and 1/4-inch steel), verifies that shaft bores clear at least <code>1.5×</code> plate thickness to prevent plasma pierce beveling on keyed hubs.</li>
</ol>
<h3>Strict AutoCAD R12 Output + 1:1 LightBurn SVG</h3>
<p>Legacy CAM software rejects R2010+ <code>SPLINE</code> entities and chokes on SVG CSS-pixel assumptions (<code>96 DPI</code> vs <code>72 DPI</code>). Exporting strict AutoCAD R12 <code>AC1009</code> closed <code>POLYLINE</code> + <code>CIRCLE</code> geometry alongside a millimeter-native <code>width="...mm" height="...mm"</code> SVG ensures a <code>81.00 mm</code> center distance cuts at <code>81.00 mm</code> on the first pass.</p>
<h3>Resources &amp; Engineering Guides</h3>
<ul>
<li>Free Involute Spur Gear &amp; Meshing Pair DXF/SVG Generator: <a href="https://www.cutpathcad.com/involute-gear-dxf">https://www.cutpathcad.com/involute-gear-dxf</a></li>
<li>Involute Spur Gear DXF &amp; Keyway Engineering Guide: <a href="https://www.cutpathcad.com/tools/involute-spur-gear-dxf-generator-guide">https://www.cutpathcad.com/tools/involute-spur-gear-dxf-generator-guide</a></li>
<li>Laser-Cut Gears Kerf &amp; Backlash Setup Guide: <a href="https://www.cutpathcad.com/tools/laser-cut-gears-kerf-backlash-svg-dxf">https://www.cutpathcad.com/tools/laser-cut-gears-kerf-backlash-svg-dxf</a></li>
</ul>
]]></content:encoded></item><item><title><![CDATA[Eliminating Dropped Islands and Self-Intersecting Glyphs in Browser-Native CNC Plasma & Laser Stencil CAD]]></title><description><![CDATA[How to eliminate dropped stencil islands and self-intersecting glyphs in browser-native CNC plasma and laser CAD using TypeScript and AutoCAD R12 DXF.]]></description><link>https://cutpathcad.hashnode.dev/eliminating-dropped-islands-and-self-intersecting-glyphs-in-browser-native-cnc-plasma-laser-stencil-cad</link><guid isPermaLink="true">https://cutpathcad.hashnode.dev/eliminating-dropped-islands-and-self-intersecting-glyphs-in-browser-native-cnc-plasma-laser-stencil-cad</guid><category><![CDATA[TypeScript]]></category><category><![CDATA[cad]]></category><category><![CDATA[engineering]]></category><category><![CDATA[geometry]]></category><category><![CDATA[#manufacturing]]></category><dc:creator><![CDATA[CutPath CAD]]></dc:creator><pubDate>Tue, 01 Dec 2026 21:44:31 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6b0f21cc8e40e43003c2cc60/60b80203-7a90-4aff-b7ac-a1dcf175ac19.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Most browser-based DXF sign makers treat stencil lettering as a cosmetic graphics problem: convert a TrueType font to SVG paths, slap a few rectangles over the letters <code>A</code>, <code>O</code>, <code>R</code>, and <code>8</code>, and hope the CAM post-processor figures it out. On an actual 14ga or 11ga steel plasma table, that shortcut fails immediately — boolean slivers produce zero-length edges, self-intersecting loops trip SheetCam lead-ins, and undersized bolt holes blow out into tapered cones.</p>
<p>When we built the browser-native stencil sign and engraving CAD kernel for CutPath CAD, we treated every glyph, plate border, and mounting hole as a verifiable 2D geometric contract rather than a graphic illustration. Here is the verification pipeline that runs in TypeScript before a single byte of AutoCAD R12 DXF is written.</p>
<h2>1. Signed-Area CCW Enforcement on Every Cut Contour</h2>
<p>Every stencil character in our 44-glyph uppercase, digit, and punctuation set (<code>A–Z</code>, <code>0–9</code>, <code>&amp;</code>, <code>-</code>, <code>.</code>, <code>/</code>, <code>#</code>, <code>'</code>, <code>+</code>, <code>:</code>) is constructed directly from disjoint simple sub-polygons parameterized by <code>bridgeWidthMm</code>. Because there are no nested counter holes, every stencil cutout is an independent closed <code>POLYLINE</code> inside the solid sign plate.</p>
<p>CAM packages like SheetCam, LightBurn, and Fusion 360 rely on consistent contour winding to determine inside vs. outside kerf compensation. After scaling and translating each sub-polygon into millimeter world coordinates, we normalize every ring using the shoelace signed-area test:</p>
<pre><code class="language-ts">export interface Vec2 {
  x: number;
  y: number;
}

export function polygonSignedArea(pts: readonly Vec2[]): number {
  let area2 = 0;
  for (let i = 0; i &lt; pts.length; i++) {
    const p = pts[i];
    const q = pts[(i + 1) % pts.length];
    area2 += p.x * q.y - q.x * p.y;
  }
  return area2 * 0.5;
}

export function enforceCounterClockwise(pts: Vec2[]): Vec2[] {
  return polygonSignedArea(pts) &lt; 0 ? [...pts].reverse() : pts;
}
</code></pre>
<p>Any degenerate ring with <code>Math.abs(polygonSignedArea(pts)) &lt; 1e-4</code> is rejected at build time by our automated geometry test suite.</p>
<h2>2. Proper Segment Intersection Testing Across Every Glyph</h2>
<p>When a user pushes <code>bridgeWidthMm</code> high (for example, 5.0 mm bridges for 11ga plasma steel) while keeping cap height compact, naive parametric offsets can fold a concave corner across an opposite edge, creating a self-intersecting bowtie loop. Most CNC controllers refuse to generate kerf offsets on self-intersecting polylines.</p>
<p>To prevent this across all 44 glyphs, we run a strict proper-intersection test on every non-adjacent edge pair <code>(a1-a2, b1-b2)</code> inside each sub-polygon using 2D cross-product orientation predicates:</p>
<pre><code class="language-ts">function orient2D(a: Vec2, b: Vec2, c: Vec2): number {
  return (b.x - a.x) * (c.y - a.y) - (b.y - a.y) * (c.x - a.x);
}

export function segmentsProperlyIntersect(a1: Vec2, a2: Vec2, b1: Vec2, b2: Vec2): boolean {
  const o1 = orient2D(a1, a2, b1);
  const o2 = orient2D(a1, a2, b2);
  const o3 = orient2D(b1, b2, a1);
  const o4 = orient2D(b1, b2, a2);
  return ((o1 &gt; 0 &amp;&amp; o2 &lt; 0) || (o1 &lt; 0 &amp;&amp; o2 &gt; 0)) &amp;&amp;
         ((o3 &gt; 0 &amp;&amp; o4 &lt; 0) || (o3 &lt; 0 &amp;&amp; o4 &gt; 0));
}
</code></pre>
<p>Our unit test harness sweeps all 44 glyphs across typical plasma, laser, and CNC router aspect ratios to confirm zero self-intersections before deployment.</p>
<h2>3. Pairwise Minimum Polygon Clearance Assertions</h2>
<p>Even when every individual sub-polygon is simple, two neighboring sub-polygons inside a bridged glyph (such as the upper and lower shells of <code>8</code> or the left and right halves of <code>O</code>) must maintain a real physical steel web between them. If two edges drift within 1.5 mm on a plasma table running a 1.4 mm kerf, the bridge evaporates into slag.</p>
<p>For every multi-part glyph, we compute the exact pairwise minimum edge-to-edge Euclidean distance between every distinct pair of sub-polygons <code>(P_i, P_j)</code> and assert <code>clearance &gt;= targetBridgeMm * 0.95</code>. That guarantees the bridge width shown in the UI matches the actual steel web left on the table after cutting.</p>
<h2>4. Plasma 1.5× Hole-to-Thickness <code>PASS / SLOW / DRILL</code> Rule</h2>
<p>Sign plates almost always need corner or side mounting holes. On a plasma table, cutting a bolt hole whose diameter is smaller than the plate thickness creates severe bevel taper and dross buildup. Instead of silently exporting bad holes, the generator evaluates the hole-to-thickness ratio <code>R = holeDiameterMm / plateThicknessMm</code> in real time:</p>
<pre><code class="language-ts">export type PlasmaHoleStatus = "PASS" | "SLOW" | "DRILL";

export function evaluatePlasmaHole(holeDiameterMm: number, thicknessMm: number): PlasmaHoleStatus {
  const ratio = holeDiameterMm / Math.max(thicknessMm, 0.1);
  if (ratio &gt;= 1.5) return "PASS";   // Full-speed clean plasma hole
  if (ratio &gt;= 1.0) return "SLOW";   // Cut at ~60% feed rate / FineCut consumables
  return "DRILL";                    // Center-punch &amp; drill post-cut
}
</code></pre>
<p>Mounting holes are emitted as native AutoCAD R12 <code>CIRCLE</code> entities on the <code>CUT</code> layer so SheetCam's automatic hole-slowdown rules can target them directly without touching outer profile speeds.</p>
<h2>5. Zero-Upload <code>sessionStorage</code> Handoff into Multi-Sheet Nesting</h2>
<p>Once a fabricator finishes dialing in a 24" × 11" arched ranch sign or a batch of 14" × 7" address plaques, the next question is sheet yield: how many signs fit on a 4×8 or 5×10 steel sheet alongside other shop brackets? Rather than forcing a download-and-reupload cycle, the stencil sign generator serializes the validated outer plate contour, cutouts, and part quantity into browser <code>sessionStorage</code> and hands the payload straight to our kerf-aware sheet nesting engine — 100% client-side with zero server round-trips.</p>
<h2>Try the Generator &amp; Engineering Guides</h2>
<p>Build and download custom bridged stencil signs or single-stroke serial tags (AutoCAD R12 DXF + 1:1 LightBurn SVG) free in your browser:</p>
<p><a href="https://www.cutpathcad.com/stencil-text-dxf">https://www.cutpathcad.com/stencil-text-dxf</a></p>
<p>Read the complete shop-floor parameter guide covering plasma bridge widths, arched ranch gates, and kerf clearances:</p>
<p><a href="https://www.cutpathcad.com/tools/plasma-stencil-text-dxf-generator-guide">https://www.cutpathcad.com/tools/plasma-stencil-text-dxf-generator-guide</a></p>
<p>For aluminum equipment tags and control panels, see our deep dive on single-line ISO engraving fonts vs. outline fonts:</p>
<p><a href="https://www.cutpathcad.com/tools/single-line-engraving-font-dxf-cnc-laser">https://www.cutpathcad.com/tools/single-line-engraving-font-dxf-cnc-laser</a></p>
]]></content:encoded></item><item><title><![CDATA[Building a Zero-Open-Loop Finger-Joint Box, Half-Lap Divider, and CNC Dogbone DXF Generator in TypeScript]]></title><description><![CDATA[Building a parametric box generator that actually survives shop-floor CAM software takes more than drawing rectangles with notches. Between LightBurn…]]></description><link>https://cutpathcad.hashnode.dev/building-a-zero-open-loop-finger-joint-box-half-lap-divider-and-cnc-dogbone-dxf-generator-in-typescript</link><guid isPermaLink="true">https://cutpathcad.hashnode.dev/building-a-zero-open-loop-finger-joint-box-half-lap-divider-and-cnc-dogbone-dxf-generator-in-typescript</guid><category><![CDATA[TypeScript]]></category><category><![CDATA[geometry]]></category><category><![CDATA[cad]]></category><category><![CDATA[#manufacturing]]></category><category><![CDATA[Web Development]]></category><dc:creator><![CDATA[CutPath CAD]]></dc:creator><pubDate>Tue, 01 Dec 2026 21:10:55 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6b0f21cc8e40e43003c2cc60/85a87060-2438-4a8e-89cb-47ab6ced9498.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Building a parametric box generator that actually survives shop-floor CAM software takes more than drawing rectangles with notches. Between LightBurn, SheetCAM, VCarve, and industrial plasma/laser tables, a browser-native CAD utility has to solve four practical engineering problems at once: exact Outside-vs-Inside dimension math, shelf-packed cut-sheet layout, strict AutoCAD R12 (<code>AC1009</code>) layer hygiene, and seamless handoff into downstream nesting and quoting workflows.</p>
<p>Here is the architecture behind the browser-native <a href="https://www.cutpathcad.com/box-joint-dxf">Finger-Joint Box DXF Generator</a> at CutPath CAD, written in pure client-side TypeScript.</p>
<hr />
<h2>1. Outside-vs-Inside Cavity Dimension Math</h2>
<p>A frequent shop-floor mistake is confusing outer envelope dimensions with usable internal cavity dimensions—especially when switching between 3 mm Baltic birch, 1/8" cast acrylic, and 6 mm CNC plywood.</p>
<p>Given sheet thickness <code>T</code> and target outer dimensions <code>(W_out, D_out, H_out)</code>:</p>
<ul>
<li>For a <strong>6-panel closed box</strong> (such as a <code>150 × 100 × 70 mm</code> 3 mm Birch Keepsake Box):<ul>
<li><code>W_in = W_out - 2T = 144.0 mm</code></li>
<li><code>D_in = D_out - 2T = 94.0 mm</code></li>
<li><code>H_in = H_out - 2T = 64.0 mm</code></li>
</ul>
</li>
<li>For a <strong>5-panel open-top tray or front-scoop parts bin</strong> (such as a <code>240 × 160 × 90 mm</code> 6 mm Plywood Parts Bin):<ul>
<li><code>W_in = W_out - 2T = 228.0 mm</code></li>
<li><code>D_in = D_out - 2T = 148.0 mm</code></li>
<li><code>H_in = H_out - T = 84.0 mm</code> (no top lid subtracting a second <code>T</code>)</li>
</ul>
</li>
</ul>
<p>When a maker switches the dimension mode toggle from <strong>Outside</strong> to <strong>Inside</strong>, the kernel solves the inverse mapping before generating a single finger:</p>
<pre><code class="language-ts">const outerW = mode === 'inside' ? inputW + 2 * T : inputW;
const outerD = mode === 'inside' ? inputD + 2 * T : inputD;
const outerH = mode === 'inside' ? inputH + (hasLid ? 2 * T : T) : inputH;
</code></pre>
<p>That guarantees internal foam inserts, PCBs, or hardware bins fit on the first cut without mental arithmetic.</p>
<hr />
<h2>2. Deterministic Shelf-Packed Cut-Sheet Allocation</h2>
<p>Dumping 5 to 8 panels into an arbitrary horizontal row wastes stock and forces the operator to manually rearrange parts before cutting.</p>
<p>Our cut-sheet layout pass uses a deterministic <strong>Next-Fit Decreasing Height (NFDH) shelf allocator</strong> parameterized by user-selectable panel gap <code>g</code> (default <code>5 mm</code> for laser / <code>8 mm</code> for CNC endmill clearance):</p>
<ol>
<li>Compute each panel's exact axis-aligned bounding box <code>(bw, bh)</code> after kerf shift (<code>±K/2</code>) or 45° CNC dogbone reliefs are applied.</li>
<li>Sort panels descending by <code>bh</code> (with tie-breaking by <code>bw</code>).</li>
<li>Target a balanced aspect ratio <code>targetWidth = Math.max(maxPanelWidth, Math.sqrt(totalArea * 1.35))</code> so the packed cut sheet fits cleanly onto common 24″×12″ laser beds and 4′×8′ CNC sheets.</li>
<li>Place each panel onto the active shelf <code>(cursorX, cursorY)</code>; wrap to <code>cursorY += shelfHeight + g</code> whenever <code>cursorX + bw &gt; targetWidth</code>.</li>
</ol>
<p>For a 3 mm Divided Desk Organizer (<code>220 × 150 × 65 mm</code>, 8 closed panels including the 3×2 interlocking half-lap grid <code>DIV-FB-1</code>, <code>DIV-FB-2</code>, <code>DIV-LR-1</code>), all 8 panels pack cleanly into a <code>445.0 × 355.8 mm</code> envelope with <code>4,784 mm</code> of total cut length.</p>
<p>For the 6 mm CNC Parts Bin (<code>240 × 160 × 90 mm</code>, 5 closed panels with front scoop and <code>1/8"</code> / <code>3.175 mm</code> 45° dogbones), all 5 panels pack into <code>408.0 × 454.0 mm</code>.</p>
<hr />
<h2>3. Strict AutoCAD R12 (<code>AC1009</code>) Layer Separation (<code>CUT</code> vs <code>LABELS</code>)</h2>
<p>Many laser and CNC operators waste 10 minutes per job deleting or re-assigning stray annotations, duplicate edges, or unsupported <code>LWPOLYLINE</code> entities.</p>
<p>Every export from our TypeScript kernel enforces two strict formats:</p>
<ul>
<li><strong>AutoCAD R12 (<code>AC1009</code>) DXF:</strong><ul>
<li>Uses classic <code>POLYLINE</code> / <code>VERTEX</code> / <code>SEQEND</code> with group code <code>70 = 1</code> (explicitly closed) so every legacy plasma, router, and laser controller imports zero open contours.</li>
<li>Separates all through-cut loops onto layer <code>CUT</code> (ACI Color 1 / Red) and all part IDs (<code>BOTTOM</code>, <code>FRONT</code>, <code>LEFT</code>, <code>DIV-FB-1</code>, etc.) onto layer <code>LABELS</code> (ACI Color 5 / Blue).</li>
<li>Offers both a <strong>Full R12 DXF (w/ Labels)</strong> and a <strong>Cut-Only R12 DXF</strong> with zero text entities for strict CAM parsers.</li>
</ul>
</li>
<li><strong>1:1 Physical LightBurn / Glowforge SVG:</strong><ul>
<li>Emits exact physical millimeter <code>width</code>, <code>height</code>, and <code>viewBox</code> attributes so LightBurn imports at true 1:1 scale regardless of 72/96 DPI defaults.</li>
<li>Color-codes strokes (<code>#e84a1b</code> Red = Cut, <code>#1f63ff</code> Blue = Engrave/Labels) so LightBurn assigns cut layers automatically on import.</li>
</ul>
</li>
</ul>
<hr />
<h2>4. Zero-Upload Browser Handoff via <code>sessionStorage</code></h2>
<p>In real shop workflows, generating one box is rarely the final step. You usually need to:</p>
<ol>
<li>Measure your exact stock kerf first on the <a href="https://www.cutpathcad.com/kerf-test-dxf">Laser Kerf Test Comb Generator</a> (for example, measuring <code>0.16 mm</code> on 3 mm MDF or <code>0.15 mm</code> on 3 mm Baltic birch).</li>
<li>Generate the kerf-compensated panels or CNC dogbone bin in the <a href="https://www.cutpathcad.com/box-joint-dxf">Finger-Joint Box DXF Generator</a>.</li>
<li>Batch-nest 6× or 12× copies of those exact panels onto a full 4′×8′ plywood sheet or 24″×12″ laser bed in the <a href="https://www.cutpathcad.com/sheet-nesting">4×8 Sheet Nesting Workbench</a> — and optionally price the cut time and material yield in a quote calculator.</li>
</ol>
<p>Instead of forcing users to download a DXF and immediately re-upload it to another page, our tools pass structured closed-contour payloads directly across routes via client-side <code>sessionStorage</code> (<code>cutpath_handoff_v1</code>). Clicking <strong>Send to Sheet Nesting</strong> carries every closed panel contour, thickness, and part label straight into the 2D bin-packing workbench in under 50 ms—no account, no server upload, and no file-format round-trip.</p>
<hr />
<h2>Try the Full Workflow Free</h2>
<p>All three browser-native utilities run locally with instant SVG/R12 DXF output:</p>
<ul>
<li>Parametric Box &amp; Divider DXF Generator: <a href="https://www.cutpathcad.com/box-joint-dxf">https://www.cutpathcad.com/box-joint-dxf</a></li>
<li>Laser Kerf Test Comb Generator: <a href="https://www.cutpathcad.com/kerf-test-dxf">https://www.cutpathcad.com/kerf-test-dxf</a></li>
<li>4×8 &amp; 24×12 Sheet Nesting Workbench: <a href="https://www.cutpathcad.com/sheet-nesting">https://www.cutpathcad.com/sheet-nesting</a></li>
</ul>
]]></content:encoded></item><item><title><![CDATA[Building a Deterministic Sheet Metal Bend Allowance, K-Factor & AutoCAD R12 Flat-Pattern DXF Kernel in TypeScript]]></title><description><![CDATA[Implementing Machinery's Handbook BA/OSSB/BD math, air-bending press-brake tonnage, corner bend relief, and closed R12 DXF export entirely in the browser.]]></description><link>https://cutpathcad.hashnode.dev/building-a-deterministic-sheet-metal-bend-allowance-k-factor-autocad-r12-flat-pattern-dxf-kernel-in-typescript</link><guid isPermaLink="true">https://cutpathcad.hashnode.dev/building-a-deterministic-sheet-metal-bend-allowance-k-factor-autocad-r12-flat-pattern-dxf-kernel-in-typescript</guid><category><![CDATA[TypeScript]]></category><category><![CDATA[engineering]]></category><category><![CDATA[cad]]></category><category><![CDATA[#manufacturing]]></category><category><![CDATA[Web Development]]></category><dc:creator><![CDATA[CutPath CAD]]></dc:creator><pubDate>Tue, 01 Dec 2026 20:36:27 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6b0f21cc8e40e43003c2cc60/c2125740-8365-439a-b47a-c6cc4c22cc90.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>When a metal fabrication shop needs a simple 11ga L-bracket, 14ga U-channel, 304 stainless Z-offset, or 5052 aluminum hat rail, firing up a heavy desktop parametric CAD suite just to unfold four bends and export a clean DXF slows down quoting and nesting.</p>
<p>We built a zero-dependency TypeScript sheet-metal bending kernel powering the free <a href="https://www.cutpathcad.com/sheet-metal-bend-calculator">CutPath CAD Sheet Metal Bend Allowance &amp; Flat-Pattern DXF Generator</a>. Every calculation and CAD export runs client-side with zero uploads and strict AutoCAD R12 (<code>AC1009</code>) compatibility.</p>
<h3>1. Exact Machinery's Handbook Neutral-Axis Geometry</h3>
<p>For a sheet of thickness <code>T</code>, inside punch radius <code>R</code>, bend angle <code>theta</code> (degrees), and air-bend neutral-axis <code>K-factor</code>:</p>
<pre><code class="language-ts">const angleRad = (angleDeg * Math.PI) / 180;
const ba = angleRad * (R + K * T);                 // Bend Allowance
const ossb = Math.tan(angleRad / 2) * (R + T);     // Outside Setback
const bd = 2 * ossb - ba;                          // Bend Deduction
const flatLength = sumFlanges - bd * bendCount;    // Flat Blank Length
</code></pre>
<p>To place each bend centerline <code>xFlat</code> accurately along <code>[0, flatLength]</code> (for plasma scribing, laser bend etching, or backgauge setup), we accumulate each flat tangent segment plus half-allowance:</p>
<pre><code class="language-ts">let cursor = 0;
for (let i = 0; i &lt; bendCount; i++) {
  const leftFlatSeg = i === 0 ? flanges[0] - ossb : flanges[i] - 2 * ossb;
  cursor += leftFlatSeg + ba / 2;
  bendLines.push({ index: i, xFlat: cursor, direction: bendDirs[i] });
  cursor += ba / 2;
}
</code></pre>
<p>For a standard <code>11ga (0.1196")</code> mild steel 90° L-bracket (<code>3.000" x 2.000"</code>, <code>R = 0.125"</code>, <code>K = 0.40</code>):</p>
<ul>
<li><code>BA = 0.2715"</code></li>
<li><code>OSSB = 0.2446"</code></li>
<li><code>BD = 0.2177"</code></li>
<li><code>Flat Blank Length = 4.7823"</code> with <code>B1 UP</code> centerline at <code>X = 2.8911"</code>.</li>
</ul>
<h3>2. Air-Bending Press Brake Tonnage &amp; 6061-T6 Cracking Guard</h3>
<p>Flat blank math alone isn't enough on the shop floor. Our kernel also computes:</p>
<ul>
<li><strong>Recommended V-die width:</strong> <code>8 x T</code> for mild steel and 5052-H32 aluminum; <code>10 x T</code> for 304 stainless and 6061-T6.</li>
<li><strong>Air-bending tonnage per foot:</strong> <code>(575 * T_in^2 / V_die_in) * materialMultiplier</code> (<code>1.0</code> mild steel, <code>1.5</code> 304SS, <code>0.55</code> 5052, <code>0.75</code> 6061-T6).</li>
<li><strong>Minimum flange length check:</strong> <code>~0.7 x V_die</code> so short flanges don't fall into the V-die shoulders.</li>
<li><strong>6061-T6 Bend Risk Warning:</strong> Automatically flags any 6061-T6 bend with <code>R &lt; 2 x T</code> where outer-fiber cracking occurs.</li>
<li><strong>Plasma 1.5x Bolt-Hole Audit:</strong> Checks every end-flange mounting hole diameter against material thickness (<code>&gt;= 1.5x</code> pass vs <code>&lt; 1.0x</code> drill).</li>
</ul>
<h3>3. Dual R12 DXF Exports: Full (w/ Bends) vs. Cut-Only</h3>
<p>A classic CNC shop headache is importing a flat pattern into SheetCam or Langmuir FireControl only to watch the plasma torch slice straight along the open bend centerlines. We solve this cleanly with two strict AutoCAD R12 (<code>AC1009</code>) DXF outputs:</p>
<ol>
<li><strong>Full R12 DXF:</strong> Separates geometry onto <code>OUTER_PROFILE</code> (closed <code>LINE</code> contour with optional bend-relief edge notches), <code>HOLES</code> (native <code>CIRCLE</code> entities), <code>BEND_UP</code>, <code>BEND_DOWN</code>, and <code>ENGRAVE_NOTES</code>.</li>
<li><strong>Cut-Only R12 DXF:</strong> Emits strictly closed <code>OUTER_PROFILE</code> + <code>HOLES</code> (round-trip verified at <code>0 open contours, 0 duplicate segments</code>) for direct 1-click handoff into <a href="https://www.cutpathcad.com/sheet-nesting">4x8 / 5x10 Sheet Nesting</a> or the <a href="https://www.cutpathcad.com/cnc-quote-calculator">Free CNC Quote Calculator</a>.</li>
</ol>
<h3>Try the Free Browser Utilities</h3>
<ul>
<li><strong>Sheet Metal Bend Calculator &amp; Flat-Pattern DXF:</strong> <a href="https://www.cutpathcad.com/sheet-metal-bend-calculator">https://www.cutpathcad.com/sheet-metal-bend-calculator</a></li>
<li><strong>Laser &amp; Plasma Kerf Test Card Generator:</strong> <a href="https://www.cutpathcad.com/kerf-test-dxf">https://www.cutpathcad.com/kerf-test-dxf</a></li>
<li><strong>Bolt Circle &amp; Pipe Flange R12 DXF Generator:</strong> <a href="https://www.cutpathcad.com/bolt-circle-dxf">https://www.cutpathcad.com/bolt-circle-dxf</a></li>
<li><strong>DXF Open-Contour &amp; Duplicate Segment Checker:</strong> <a href="https://www.cutpathcad.com/dxf-checker">https://www.cutpathcad.com/dxf-checker</a></li>
</ul>
]]></content:encoded></item><item><title><![CDATA[Generating 16-Bit Big-Endian Grayscale PNG Depth Maps and Watertight Binary STLs in Pure TypeScript]]></title><description><![CDATA[If you have ever deep-engraved a 40 mm brass challenge coin on an xTool F1 Ultra or a 30W–100W MOPA fiber laser running LightBurn 3D Slice, you have seen…]]></description><link>https://cutpathcad.hashnode.dev/generating-16-bit-big-endian-grayscale-png-depth-maps-and-watertight-binary-stls-in-pure-typescript</link><guid isPermaLink="true">https://cutpathcad.hashnode.dev/generating-16-bit-big-endian-grayscale-png-depth-maps-and-watertight-binary-stls-in-pure-typescript</guid><category><![CDATA[TypeScript]]></category><category><![CDATA[webdev]]></category><category><![CDATA[3d]]></category><category><![CDATA[engineering]]></category><category><![CDATA[cnc]]></category><dc:creator><![CDATA[CutPath CAD]]></dc:creator><pubDate>Tue, 01 Dec 2026 19:41:30 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6b0f21cc8e40e43003c2cc60/e7ed742b-a749-4435-9184-60ced6f3ce5e.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>If you have ever deep-engraved a 40 mm brass challenge coin on an xTool F1 Ultra or a 30W–100W MOPA fiber laser running LightBurn 3D Slice, you have seen the two classic artifacts that ruin a blank:</p>
<ol>
<li><strong>Concentric stair-stepped terrace rings</strong> across curved surfaces.</li>
<li><strong>Inverted glare spikes</strong> where specular photo highlights get carved as razor ridges while dark hair or eyes sink into craters.</li>
</ol>
<p>The root cause is almost always the file format and encoding pipeline, not the galvo laser itself.</p>
<h2>Why 8-Bit Grayscale Fails at 128–256 Passes</h2>
<p>Standard JPEGs and 8-bit PNGs only store <strong>256 discrete Z-levels</strong> (<code>0–255</code>), and JPEG macroblocks add quantized noise across subtle gradients. When LightBurn 3D Slice or xTool Creative Space (XCS) slices a 1.5 mm brass relief into 128 or 256 ablation passes, adjacent 8-bit steps produce visible topographic rings that no amount of cleanup passes can completely polish out.</p>
<p>True <strong>16-bit grayscale PNG</strong> (<code>bitDepth = 16</code>, <code>colorType = 0</code>) stores <strong>65,536 Z-levels</strong> (<code>0–65535</code>) with lossless DEFLATE compression. The catch in browser JavaScript is that HTML <code>&lt;canvas&gt;</code> <code>toDataURL('image/png')</code> always outputs 8-bit RGBA. To emit true 16-bit depth maps entirely client-side, you have to encode the PNG chunks yourself.</p>
<h2>Encoding True 16-Bit Big-Endian Grayscale PNGs in TypeScript</h2>
<p>A valid PNG consists of an 8-byte signature followed by four chunks: <code>IHDR</code>, <code>IDAT</code>, and <code>IEND</code>.</p>
<ul>
<li><strong><code>IHDR</code> (13 bytes):</strong> <code>width</code> (uint32 BE), <code>height</code> (uint32 BE), <code>bitDepth = 16</code>, <code>colorType = 0</code> (grayscale), <code>compression = 0</code>, <code>filter = 0</code>, <code>interlace = 0</code>.</li>
<li><strong>Raw scanlines:</strong> Each row begins with filter byte <code>0x00</code> followed by <code>width</code> big-endian <code>uint16</code> samples (<code>hi = v &gt;&gt;&gt; 8</code>, <code>lo = v &amp; 0xff</code>).</li>
<li><strong>Compression:</strong> Wrap the raw scanlines in a standard zlib stream (<code>0x78 0x9C</code> + DEFLATE payload + big-endian Adler-32 checksum) and compute the IEEE CRC-32 over <code>[chunkType, chunkData]</code> for each chunk.</li>
</ul>
<p>Running this directly on a normalized <code>Float32Array</code> heightfield takes under 40 ms for a 1024×1024 coin heightmap in modern browsers—with zero server round-trip and zero 8-bit banding.</p>
<h2>Building Watertight Binary <code>.STL</code> Meshes From the Same Heightfield</h2>
<p>Woodworkers running Vectric VCarve Pro, Aspire, Carveco, or Carbide Create Pro usually prefer a <strong>manifold binary <code>.STL</code></strong> with a solid baseplate over a heightmap PNG.</p>
<p>A flat displaced grid by itself is an open sheet with boundary edges that causes CAM slicers to complain about non-manifold geometry. To guarantee watertight topology:</p>
<ol>
<li><strong>Top surface:</strong> For each grid cell <code>(x, y)</code> with four vertices <code>(v00, v10, v01, v11)</code>, emit two consistently wound CCW triangles (<code>(v00, v10, v11)</code> and <code>(v00, v11, v01)</code>).</li>
<li><strong>Solid Z=0 baseplate:</strong> Emit matching bottom triangles with reversed winding facing <code>-Z</code>.</li>
<li><strong>Four perimeter skirt walls:</strong> Stitch every top boundary edge directly down to its exact <code>Z=0</code> base vertex with outward-facing normals.</li>
<li><strong>Automated half-edge verification:</strong> Before shipping any export path, verify every directed half-edge <code>(a -&gt; b)</code> has an exact twin <code>(b -&gt; a)</code> so open-edge count is strictly <code>0</code>.</li>
</ol>
<h2>Try It Live in the Browser</h2>
<p>We built this exact 16-bit big-endian PNG + watertight binary STL pipeline into <strong>CutPath CAD</strong>:</p>
<ul>
<li><strong>2.5D Bas-Relief STL &amp; 16-Bit Depth Map Workbench:</strong> <a href="https://www.cutpathcad.com/relief-stl">https://www.cutpathcad.com/relief-stl</a> — upload any photo, crest, or transparent logo, preview live in WebGL Antiqued Brass, Carved Walnut, Steel, or Lithophane before engraving, and export both 16-bit PNG + watertight <code>.STL</code> (free unlimited preview; exports from $4.99 one-time, no subscription).</li>
<li><strong>100% Free Browser 3D STL Viewer &amp; Watertight Checker:</strong> <a href="https://www.cutpathcad.com/stl-viewer">https://www.cutpathcad.com/stl-viewer</a> — drop any binary or ASCII <code>.STL</code> to inspect triangle count, open boundary edges, exact inch/mm envelope, and solid metal weight free with zero signup.</li>
<li><strong>Machine-Specific Guides:</strong> <a href="https://www.cutpathcad.com/tools/xtool-f1-ultra-emboss-depth-map">xTool F1 Ultra 3D Emboss Depth Map Guide</a> and <a href="https://www.cutpathcad.com/tools/lightburn-3d-slice-depth-map">LightBurn 3D Slice MOPA Fiber Laser Guide</a>.</li>
</ul>
]]></content:encoded></item></channel></rss>