create-rulecad 0.3.1 → 0.3.2
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 +9 -0
package/package.json
CHANGED
package/template/AGENTS.md
CHANGED
|
@@ -17,6 +17,15 @@ variable says which rule it comes from. Follow these steps; they're what makes a
|
|
|
17
17
|
on `interface` (versions follow them). Give sensible `tweak` ranges to the ones they may want to change.
|
|
18
18
|
5. `npx cad export` for printing; `npx cad link --md` for a link to share.
|
|
19
19
|
|
|
20
|
+
## Fitting something from elsewhere
|
|
21
|
+
- When a part must fit something whose model exists (a maker's CAD, a model site), measure that model:
|
|
22
|
+
`npx cad measure <file> --rules <name> --source <url> --licence "…"`. Look at the drawing in `.preview/measure/`,
|
|
23
|
+
then rename the draft rules for what they are and say in each `rule` what the feature does.
|
|
24
|
+
- Model it from those rules, then `npx cad match <project>/<object> <file>`: report the worst places with their numbers,
|
|
25
|
+
and look at the sections picture. A deliberate clearance shows as an even offset; anything else is a finding.
|
|
26
|
+
- Don't copy the shape of a model whose licence is non-commercial, no-derivatives or share-alike into a design under
|
|
27
|
+
another licence: take measurements only, and say so.
|
|
28
|
+
|
|
20
29
|
## Changing a design
|
|
21
30
|
1. `npx cad history <project>/<object>` first: read the print log. A failed print is the reason for most changes:
|
|
22
31
|
fix the rule or variable it points at (a measured fit beats a community rule).
|