Repository navigation
Expand file tree
/
Copy pathhelp.html
More file actions
15 lines (15 loc) · 17.6 KB
/
Copy pathhelp.html
File metadata and controls
15 lines (15 loc) · 17.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>WayriCAD Mechanical Check — Help</title><style>body{font:15px system-ui,sans-serif;max-width:850px;margin:24px auto;padding:0 20px;color:#242424;background:#fff;line-height:1.6}h1{font-size:24px}h2{font-size:18px}code{background:#f2f2f2;padding:2px 4px}</style><style id="wayricad-help-layout">html{scroll-behavior:smooth}body{box-sizing:border-box;width:auto;max-width:76rem;margin:2rem auto;padding:0 1.25rem;font:16px/1.6 system-ui,"Segoe UI",sans-serif;color:#203541;background:#fff;overflow-wrap:anywhere}h1,h2,h3{line-height:1.3}h2{margin-top:2rem}img,svg,video{max-width:100%;height:auto}pre{max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:1rem;background:#f1f5f7}table{display:block;max-width:100%;overflow:auto;border-collapse:collapse}th,td{padding:.55rem;border:1px solid #c9d4da;vertical-align:top;text-align:left;min-width:7rem}a{color:#155b94}li{margin:.45rem 0}.help-navigation{padding:1rem;border:1px solid #c9d4da;background:#f1f6f8}.help-navigation ul{margin:.4rem 0;padding-left:1.5rem}@media(max-width:700px){body{margin:1rem auto;padding:0 .8rem}h1{font-size:1.8rem}th,td{min-width:6rem}}@media print{.help-navigation{display:none}body{max-width:none;margin:0;color:#000}pre,table{overflow:visible}a{color:#000}}</style></head><body>
<h1>WayriCAD Mechanical Check</h1><p>Launch from PCB Editor and choose a finding, then use <b>Locate in KiCad</b> to select its primary-board footprints by UUID. A mixed finding lists any comparison-board or enclosure objects separately. The editor must still be showing the reviewed board revision.</p><p>The saved-board window follows saves to the primary and comparison PCBs and their adjacent project/rule files. A change clears the old scene, findings and export, cancels a running check, and refreshes the primary footprint inventory. Mount settings follow surviving footprint UUIDs. Run checks again to rebuild the results.</p><p><strong>Save complete results (updated source):</strong> Export retains HTML, complete JSON and CSV. Saved single-board scenes also include a portable .pocket-kivi.json companion. Live snapshots and multi-board scenes have no single verified PCB binding. Mesh coordinates remain mechanical scene coordinates, with no invented PCB transform.</p><nav class="help-navigation" aria-label="Offline help contents"><strong>On this page</strong><ul><li><a href="#help-section-1">Five compact steps</a></li><li><a href="#help-section-2">Setup</a></li><li><a href="#help-section-3">Coordinates and rules</a></li><li><a href="#help-section-4">What the findings mean</a></li><li><a href="#help-section-5">Distances, closest approach and rulers</a></li><li><a href="#help-section-6">Engineering measurements and part dimensions</a></li><li><a href="#help-section-7">Global height limits and proximity warnings</a></li><li><a href="#help-section-8">Automation</a></li><li><a href="#help-section-9">Interboard collision review</a></li><li><a href="#help-section-10">Quick 2D screen</a></li><li><a href="#help-section-11">Resolve incomplete collision evidence</a></li><li><a href="#review-workspace">A clearer review workspace</a></li></ul><p><a href="README.md">Full plugin guide and command reference</a>. This page and its illustrations are installed locally; an internet connection is not required.</p></nav><p>Review physical fit and model coverage using local files. Nothing is sent to a server.</p>
<figure><a href="help-workflow.png"><img src="help-workflow.png" alt="Mechanical Check native 3D review workspace using the public validation fixture" style="max-width:100%"></a><figcaption>Actual native STEP-solid Review workspace. Synthetic fixture; this is not a passed mechanical audit. Click the screenshot for its original pixels.</figcaption></figure><h2 id="help-section-1">Five compact steps</h2><ol><li><b>Board:</b> choose a saved .kicad_pcb file and optionally enter project, revision and reviewer. Save PCB Editor changes first: the IPC and native actions check the saved file, not unsaved editor changes.</li><li><b>Rules:</b> set clearances, top/bottom heights, hardware and the PnP nozzle profile. The live side view shows the circular tip, wider head, setback above pickup and travel, all in millimetres. Confirm mounting intent for each hole; unconfirmed holes create incomplete coverage. Load or save reusable JSON settings. Zones, enclosures and other advanced settings are behind one button.</li><li><b>Run:</b> start validation. Cancel stops the geometry worker. The board file is never edited.</li><li><b>Review:</b> select a finding to see the actual STEP surfaces and red intersection volume. Drag to orbit, right-drag to pan, wheel to zoom. Fit resets the view; Display → Focus contact centers the conflict. The toolbar identifies 2D envelopes or 3D STEP solids; Load 3D models runs exact analysis from a 2D result. Use search and severity filters. Gold shapes represent conservative hardware allowances.</li><li><b>Report:</b> export HTML, JSON and CSV to a new timestamped folder. The HTML includes a dimensioned PnP nozzle profile and marks the section that triggered a selected access warning; the obstacle marker is schematic, while the 3D viewer shows actual positions. All viewer assets work offline. Print it from your browser for PDF.</li></ol>
<h2 id="help-section-2">Setup</h2><p>The IPC launcher uses the official kicad-python client to find the saved board, then opens a separate local window using KiCad 10 Python. If context is unavailable, select the file in that window. Enable KiCad's API in Preferences to use automatic context.</p><p>The native viewer requires <code>pcbnew</code>, <code>wxPython</code> and <code>PyOpenGL</code>. The IPC launcher, standalone --gui/--review commands and optional native action check OpenGL.GL and OpenGL.GLU and prepare missing PyOpenGL in a private dependency environment before opening the viewer in a separate process. KiCad itself is not modified. Setup failures include a log path; configure pip offline wheels or proxy settings as described in the runtime setup guide. Exact solids require a separate FreeCAD Python installation with FreeCAD, Part and Import. No geometry kernel is downloaded by the plugin.</p><p>Run <code>python launch.py --doctor</code> to see discovered executable paths. Override discovery with <code>WAYRICAD_MECHANICAL_KICAD_CLI</code>, <code>WAYRICAD_MECHANICAL_KICAD_PYTHON</code> and <code>WAYRICAD_MECHANICAL_FREECAD_PYTHON</code>. Finding executables does not prove all runtime modules are available.</p>
<h2 id="help-section-3">Coordinates and rules</h2><p>All lengths are millimetres. Height zones use KiCad board XY coordinates. Enclosure STEP models and 3D keepout bounds use exported CAD XYZ coordinates, with board export origin 0×0 mm; align external geometry before checking. Keepout bounds are [xmin, ymin, zmin, xmax, ymax, zmax]. Use the generated default rules as the settings reference: <code>python launch.py --init-rules rules.json</code>.</p>
<h2 id="help-section-4">What the findings mean</h2><p>STEP component collisions, minimum surface separation, enclosure fit and board penetration use actual solid geometry. Hardware, pad proximity, independent XY/Z allowances and nozzle access use conservative envelopes and require engineering review. Missing/unresolved/hidden/invalid models, absent kernels or unconfirmed mounting intent prevent a complete pass. Waivers require a reason and are scoped to board/model hashes and physical rules.</p><p>This checks static assembly fit. It does not replace electrical DRC or model machine trajectories, cable bending, rigid-flex folding, tolerance stacks or solder processes. KiCad 10 is the extraction engine. KiCad 11 IPC installation is forward-oriented but unverified; native KiCad 10 Python remains required until extraction is ported.</p>
<h2 id="help-section-5">Distances, closest approach and rulers</h2><p>After Run, choose <b>Minimum part gap</b>. Click two different parts or type their references in Part A and Part B, then Measure. Exact 3D uses cached transformed solids to find the shortest surface distance and its two witness points. The readout shows evidence and X/Y/Z differences in millimetres. A zero distance means touching or overlapping; positive overlap volume, when measured, is shown separately. Missing geometry stays unavailable. Changed source boards, models or enclosures require a new Run before live queries.</p><p><b>Point → point</b> measures straight-line distance between two picked tessellated surface locations, including points on the same part. This is not the minimum part clearance. Green rulers persist; hover shows an orange closest-approach witness for the nearest eligible part in the saved analysis. Clear rulers clears the overlays. Lines and labels remain visible through surfaces: use cutaway or sections to inspect the surrounding geometry.</p><p>Fit board restores the whole assembly. Top, Bottom and Side use orthographic projection with a millimetre scale. Iso uses perspective; its scale is marked at view center. Display contains the grid, selected/hovered reference labels, optional isolation and Save view. Save view reads the actual rendered RGB buffer to an opaque PNG. Only active/hovered rulers get labels; older lines remain, and crowded labels are omitted. Quick 2D displays the saved Edge.Cuts as unfilled contours, including cutouts and sampled curves, and measures same-side footprint envelopes. Invalid outlines stay unavailable.</p><p>HTML/JSON exports preserve measured pairs and point rulers. Offline HTML displays saved pair measurements and supports new point rulers. A pair without saved geometry evidence requires a new native run; a nearest known measured pair is labelled distinctly from a proven nearest part. Reopened reports do not contain the private live geometry cache.</p><figure><a href="help-measurements.png"><img src="help-measurements.png" alt="Native 3D STEP inspection with saved exact CAD edge witnesses and selected references" style="max-width:100%"></a><figcaption>Synthetic saved-board fixture. The active edge ruler uses exact CAD curves; historical picked-point and surface-gap witness lines remain separately stored. Click for the full-size image.</figcaption></figure>
<h2 id="help-section-6">Engineering measurements and part dimensions</h2>
<p>In Select / orbit, click a part to open its compact dimension card: CAD X/Y/Z extents and ranges, solid volume, geometric volume centroid and CAD edge count when available. Extents are axis aligned in the saved assembly coordinates, not local oriented or manufacturing dimensions. Missing metrics remain unavailable.</p>
<p>The selector offers Minimum part gap, Point → point, Edge → edge, Point → edge and Body center → center. In exact 3D, hover highlights a selectable CAD edge. Click two edges, including different edges of one body, or enter part references and one-based Edge A/B numbers. For point-to-edge, click a surface point first, then click an edge or enter Part B / Edge B. For centers, click two bodies or select their references. The readout includes the distance, CAD XYZ differences and source evidence.</p>
<p>Edge distances use actual CAD curves from the immutable analysis BREP copies. Picked surface points are approximated by the display tessellation. Body centers use geometric volume centroids with uniform volume weighting; density is not supplied, so these are not mass centers. Curve samples are for display/picking only and are bounded; edges without samples remain queryable by number. Old reports lacking feature inspection need a new native Run. Offline reports display saved feature rulers; new arbitrary exact curve queries require the native CAD cache.</p>
<figure><a href="help-part-dimensions.png"><img src="help-part-dimensions.png" alt="Native part dimensions popup for the public C3 STEP model"></a><figcaption>Automatically scanned saved-solid dimensions. Click for the full-size screenshot.</figcaption></figure>
<h2 id="help-section-7">Global height limits and proximity warnings</h2><p>On Rules, set Max top height and Max bottom height in millimetres. Both limits apply to every primary component solid, including protrusions on the opposite side of its mounting face. Height is measured outward from each PCB face, including standoff: top is max(0, zmax − board thickness), bottom is max(0, −zmin). Height uses CAD bounds, which can conservatively enclose curved geometry; its markers are envelope locations rather than closest-surface witnesses. A zero limit permits no protrusion. Quick 2D and missing models cannot establish height.</p><p>Violating parts turn red. Labels such as J1 top +0.8 mm show the excess; select a finding or hover/click its part for the measured height and maximum. Labels avoid overlap, with priority for selected/hovered parts; all findings remain in the table. Proximity warning is a separate soft gap threshold, with 0 disabling it. Exact 3D uses component surface gaps, while Quick 2D uses same-side footprint envelopes. Collisions and hard-clearance findings take precedence. Amber parts indicate active warnings; select the finding for its witness line and threshold. Display can hide Violation / proximity markers. Waived findings retain their evidence without active part markers.</p>
<h2 id="help-section-8">Automation</h2><p><code>python launch.py board.kicad_pcb --rules rules.json --output reports</code></p><p>Exit codes: 0 passed (possibly with documented waivers); 1 configuration/runtime error; 2 findings need review; 3 incomplete coverage. Reopen a JSON report with <code>python launch.py --review report.json</code> using KiCad Python.</p>
<h2 id="help-section-9">Interboard collision review</h2><p>On Board, choose a second saved .kicad_pcb, enter its X/Y/Z translation in millimetres and rotation about CAD Z relative to the current board STEP export origin, then choose Exact 3D solids. The second board is exported separately and transformed only in the temporary analysis. Its components are labelled Other:REF. A collision is an exact STEP intersection; a close approach is an exact shortest surface distance below the configured 3D clearance. Missing models or substrate solids make coverage incomplete. Use Review → Cutaway PCB and choose X, Y, Z or Custom to clip both boards through the selected finding. Set the Custom normal on Rules before Run; 2D section shows FreeCAD intersection curves at the finding plane for that direction. The section offset scans the 3D view, while the exact 2D curves represent the original finding plane. The offline HTML report also displays these curves. Save and rerun after editing either board or changing placement. This is static assembly fit, not mating or motion simulation.</p><h2 id="help-section-10">Quick 2D screen</h2><p>Select Quick 2D footprint screen on Board. It needs no FreeCAD or STEP model files. Same-side footprint envelopes are checked against horizontal allowance; DNP filtering and report exports remain available. This is conservative bounding-box screening, not exact collision checking. It always reports INCOMPLETE because heights, enclosures, hardware and assembly access are unchecked. Exact 3D solids retains the full workflow.</p><a href="help-quick2d.png"><img src="help-quick2d.png" alt="Native 2D footprint envelope findings"></a><h2 id="help-section-11">Resolve incomplete collision evidence</h2><ul><li>Missing component model: resolve its actual 3D model path before interpreting a clean collision list. Missing geometry cannot prove clearance.</li><li>Imported board is misplaced: review its translation/rotation and coordinate convention in the preview before running interboard checks.</li><li>Close approach differs from overlap: read the distance and configured warning limit; proximity is not automatically penetration.</li><li>Section view seems empty: choose a section through the reported collision/closest-approach location and check visible board/component filters.</li><li>Source or transforms changed: rerun the analysis before exporting evidence. A 2D envelope screen is separate from detailed 3D model checks.</li></ul><h2 id="review-workspace">A clearer review workspace</h2><p>Available in release 3.6.23. Use Findings / tools to hide or restore the sidebar, and drag its divider or the divider between the findings table and detail card. The Board, Rules and Report pages scroll. Compare another board and Hardware, nozzle and section options expand only when needed; confirm mounting intent there before accepting coverage.</p><ol><li>Search references, rules or descriptions. Every search word must match a human-readable field. Errors and Warnings show open findings; Waived is separate. Sort by priority, parts or rule.</li><li>Use Previous / Next to move through the visible findings. Sorting retains the selected finding and camera when it still matches. Turn off Frame parts when selecting a finding to keep a manual view while navigating.</li><li>Double-click a finding or use Focus finding to inspect its conflict region. Isolate parts hides unrelated components. Fit board restores the complete assembly context.</li><li>Click a part to select its first visible matching finding and inspect its dimension card without moving the camera. Existing filters stay in effect.</li><li>Open Measure for gap, point, edge and center tools; Display contains sections, transparency, cutaway and image export.</li></ol><p>Ctrl+F opens findings search. F1 opens this guide. A zero-result filter clears the previous highlight; it never converts incomplete model coverage into a pass. Read the measured value, maximum/required limit, evidence and suggested action in the selected detail card; its height can be resized.</p><a href="help-review.png"><img src="help-review.png" alt="Actual native STEP review with separate findings, measurement and display tabs"></a></body></html>