aboutsummaryrefslogtreecommitdiff
path: root/diagrams/u-channel-cover.typ
diff options
context:
space:
mode:
authorDenis Chevalier <perso@denischevalier.fr>2026-08-10 22:32:38 +0200
committerDenis Chevalier <perso@denischevalier.fr>2026-08-10 22:32:38 +0200
commitb28f97f3526859633fde603764b827389279d10f (patch)
treeef483985fc0be4237f98b2ad7dd0682b160b4cef /diagrams/u-channel-cover.typ
parent32d3f3d945002c1413490449aa08522c78f4dcad (diff)
downloadsame-b28f97f3526859633fde603764b827389279d10f.tar.gz
same-b28f97f3526859633fde603764b827389279d10f.tar.bz2
same-b28f97f3526859633fde603764b827389279d10f.zip
extract figures in separate files
Diffstat (limited to 'diagrams/u-channel-cover.typ')
-rw-r--r--diagrams/u-channel-cover.typ197
1 files changed, 197 insertions, 0 deletions
diff --git a/diagrams/u-channel-cover.typ b/diagrams/u-channel-cover.typ
new file mode 100644
index 0000000..345e2b7
--- /dev/null
+++ b/diagrams/u-channel-cover.typ
@@ -0,0 +1,197 @@
+#import "../lib/unify.typ": qty
+#import "@preview/cetz:0.5.2"
+
+#figure(
+ cetz.canvas({
+ import cetz.draw: *
+
+ // Scale factor: 1 mm = 0.060 drawing units
+ let s = 0.060
+
+ let h = 165.1 * s // 4.953 mm
+ let d = 152.4 * s // 4.572 mm
+ let w = 35.7 * s // 1.071 mm
+ let f = 8.0 * s // 0.240 mm (8 mm flange overlap)
+ let t = 1.2 * s // Sheet metal thickness (1.2 mm)
+
+ let y-bot = 0
+ let y-top = h
+
+ // ==========================================
+ // 1. FRONT ELEVATION (U-Profile End View: 35.7 x 165.1 mm)
+ // ==========================================
+ let x-front-start = 0
+ let x-front-end = x-front-start + w
+ let x-front-mid = (x-front-start + x-front-end) / 2
+
+ // View Title
+ content((x-front-mid, y-top + 0.8), text(
+ size: 8.5pt,
+ weight: "bold",
+ )[FRONT ELEVATION])
+
+ // U-Channel Sheet Metal Cross-Section Outline
+ // Top Limb
+ rect(
+ (x-front-start, y-top - t),
+ (x-front-end, y-top),
+ fill: luma(210),
+ stroke: 0.8pt + black,
+ )
+ // Right Side Wall
+ rect(
+ (x-front-end - t, y-bot),
+ (x-front-end, y-top),
+ fill: luma(230),
+ stroke: 0.8pt + black,
+ )
+ // Bottom Limb
+ rect(
+ (x-front-start, y-bot),
+ (x-front-end, y-bot + t),
+ fill: luma(210),
+ stroke: 0.8pt + black,
+ )
+
+ // Inner Cavity Hatch/Indicator Line
+ line(
+ (x-front-start, y-bot + t),
+ (x-front-end - t, y-bot + t),
+ (x-front-end - t, y-top - t),
+ (x-front-start, y-top - t),
+ stroke: (paint: luma(140), thickness: 0.5pt, dash: "dotted"),
+ )
+
+ // Front Width Dimension (35.7 mm)
+ line(
+ (x-front-start, y-bot),
+ (x-front-start, y-bot - 0.6),
+ stroke: 0.4pt + luma(140),
+ )
+ line(
+ (x-front-end, y-bot),
+ (x-front-end, y-bot - 0.6),
+ stroke: 0.4pt + luma(140),
+ )
+ line(
+ (x-front-start, y-bot - 0.6),
+ (x-front-end, y-bot - 0.6),
+ mark: (start: "stealth", end: "stealth"),
+ mark-size: 0.10,
+ stroke: 0.6pt + black,
+ )
+ content((x-front-mid, y-bot - 0.9), text(size: 7pt)[$qty(35.7, "mm")$])
+
+ // Front Height Dimension (165.1 mm)
+ line(
+ (x-front-start, y-bot),
+ (x-front-start - 0.6, y-bot),
+ stroke: 0.4pt + luma(140),
+ )
+ line(
+ (x-front-start, y-top),
+ (x-front-start - 0.6, y-top),
+ stroke: 0.4pt + luma(140),
+ )
+ line(
+ (x-front-start - 0.6, y-bot),
+ (x-front-start - 0.6, y-top),
+ mark: (start: "stealth", end: "stealth"),
+ mark-size: 0.10,
+ stroke: 0.6pt + black,
+ )
+ content(
+ (x-front-start - 0.9, (y-bot + y-top) / 2),
+ text(size: 7pt)[$qty(165.1, "mm")$],
+ angle: 90deg,
+ )
+
+ // ==========================================
+ // 2. RIGHT ELEVATION (Inner Face View: 152.4 x 165.1 mm)
+ // ==========================================
+ let x-right-start = 3.5
+ let x-right-end = x-right-start + d
+ let x-right-mid = (x-right-start + x-right-end) / 2
+
+ // View Title
+ content((x-right-mid, y-top + 0.8), text(
+ size: 8.5pt,
+ weight: "bold",
+ )[RIGHT ELEVATION (INNER FACE)])
+
+ // Main Right Wall Sheet Metal Surface
+ rect(
+ (x-right-start, y-bot),
+ (x-right-end, y-top),
+ fill: luma(245),
+ stroke: 1.2pt + black,
+ )
+
+ // Masked Unpainted Perimeter Area (8mm border where it mates with L-channel flanges)
+ rect(
+ (x-right-start + f, y-bot + f),
+ (x-right-end - f, y-top - f),
+ fill: luma(230),
+ stroke: (paint: luma(130), thickness: 0.7pt, dash: "dashed"),
+ )
+ content(
+ (x-right-mid, (y-bot + y-top) / 2),
+ text(size: 7.5pt, fill: luma(100))[Painted Central Surface],
+ )
+
+ // Countersunk Through-Holes (Crosshair + concentric circles for 90-deg countersink)
+ let draw-csink(cx, cy) = {
+ circle((cx, cy), radius: 0.10, fill: white, stroke: 0.6pt + black)
+ circle((cx, cy), radius: 0.05, fill: luma(180), stroke: 0.4pt + black)
+ line((cx - 0.13, cy), (cx + 0.13, cy), stroke: 0.3pt + luma(120))
+ line((cx, cy - 0.13), (cx, cy + 0.13), stroke: 0.3pt + luma(120))
+ }
+
+ // Top & Bottom Edge Countersunk Hole Pattern (matching top/bottom flanges)
+ draw-csink(x-right-start + 30.0 * s, y-top - f / 2)
+ draw-csink(x-right-start + 122.4 * s, y-top - f / 2)
+ draw-csink(x-right-start + 30.0 * s, y-bot + f / 2)
+ draw-csink(x-right-start + 122.4 * s, y-bot + f / 2)
+
+ // Front & Rear Edge Countersunk Hole Pattern
+ draw-csink(x-right-start + f / 2, y-bot + 30.0 * s)
+ draw-csink(x-right-start + f / 2, y-top - 30.0 * s)
+ draw-csink(x-right-end - f / 2, y-bot + 30.0 * s)
+ draw-csink(x-right-end - f / 2, y-top - 30.0 * s)
+
+ // Depth Dimension (152.4 mm)
+ line(
+ (x-right-start, y-bot),
+ (x-right-start, y-bot - 0.6),
+ stroke: 0.4pt + luma(140),
+ )
+ line(
+ (x-right-end, y-bot),
+ (x-right-end, y-bot - 0.6),
+ stroke: 0.4pt + luma(140),
+ )
+ line(
+ (x-right-start, y-bot - 0.6),
+ (x-right-end, y-bot - 0.6),
+ mark: (start: "stealth", end: "stealth"),
+ mark-size: 0.10,
+ stroke: 0.6pt + black,
+ )
+ content((x-right-mid, y-bot - 0.9), text(size: 7pt)[$qty(152.4, "mm")$])
+
+ // Masked Border Callout Annotation
+ line(
+ (x-right-start + f / 2, y-top - 15.0 * s),
+ (x-right-start - 0.5, y-top - 1.0),
+ stroke: 0.5pt + black,
+ )
+ content(
+ (x-right-start - 0.5, y-top),
+ text(size: 6.5pt)[Masked unpainted perimeter \
+ (8 mm EMI contact area)],
+ anchor: "south-east",
+ angle: 90deg,
+ )
+ }),
+ caption: [Cassette U-Channel cover technical drawings showing Front Elevation (profile) and Right Elevation (inner face showing masked unpainted EMI perimeter and countersunk hole grid)],
+) <figure-cassette-uchannel-diagram>