create-rulecad 0.3.4 → 0.3.6
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 +1 -1
- package/template/AGENTS.md +12 -0
package/package.json
CHANGED
package/template/AGENTS.md
CHANGED
|
@@ -80,6 +80,18 @@ 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
|
+
- Solid parts (brackets, joints) are 3D problems: regions with a z, a named part as the space if it helps. Set
|
|
90
|
+
`"overhang"` to the way up it will print, so the result needs no supports, and give horizontal bosses and holes a
|
|
91
|
+
`teardrop`. Build with `v.shapes.optimisedSolid(...)` and `"engine": "manifold"`; look at the four views.
|
|
92
|
+
- Say plainly that the analysis is coarse and the material values are data-sheet figures: anything that could hurt
|
|
93
|
+
someone if it broke needs testing, not just a check.
|
|
94
|
+
|
|
83
95
|
## Talking to the person
|
|
84
96
|
- Give links as one labelled line (`npx cad link <project>/<object> --md`), never a raw URL. If it says
|
|
85
97
|
"(not a release)", say so. If it says the link is too long for chat, don't paste it: tell the person, and offer
|