create-rulecad 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rulecad",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Start a rulecad project: npm create rulecad my-designs. A workspace with a soap tray to start from, ready to check, preview, export and share.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -80,6 +80,15 @@ variable says which rule it comes from. Follow these steps; they're what makes a
80
80
  - Join pins with `nets` (`GND: ['U1.GND', 'J1.GND']`) and let the autorouter draw them; `cad check` runs the fab's
81
81
  design rules. Look at the copper preview: connectors should face the edge their plug comes from.
82
82
 
83
+ ## Optimised parts
84
+ - For a flat part that carries load (a lever, a bracket, a pedal arm), describe it as a problem in `problems/`: the
85
+ space it may fill, the bosses to keep, the holes to avoid, the supports and loads (in newtons, each in a case), the
86
+ material's rule set. `npx cad optimise <project>/<problem>` and **look at the picture** in `.preview/`.
87
+ - A design reads the result through a `problem` variable and builds it with `v.shapes.optimisedOutline(...)`. Add an
88
+ `analysis` to the object so `cad check` reports its stiffness; report those numbers with their load and material.
89
+ - Say plainly that the analysis is coarse and the material values are data-sheet figures: anything that could hurt
90
+ someone if it broke needs testing, not just a check.
91
+
83
92
  ## Talking to the person
84
93
  - Give links as one labelled line (`npx cad link <project>/<object> --md`), never a raw URL. If it says
85
94
  "(not a release)", say so. If it says the link is too long for chat, don't paste it: tell the person, and offer