Misc doc updates

This commit is contained in:
hodapp 2020-02-22 16:14:19 -05:00
parent 00a766bd24
commit 58d83a03e6
2 changed files with 25 additions and 4 deletions

View File

@ -4,20 +4,19 @@
- Clean up my 'parent vertex mapping' thingy, *and* come up with - Clean up my 'parent vertex mapping' thingy, *and* come up with
meaningful terms to discuss it. meaningful terms to discuss it.
- Terminology: "run" a rule versus "evaluate" a rule.
- Do transforms compose in the *reverse* of automata_scratch? This - Do transforms compose in the *reverse* of automata_scratch? This
appears to be the case. appears to be the case.
## Important but less critical: ## Important but less critical:
- Why must I repeat myself so much in these definitions? - Why must I repeat myself so much in these definitions?
- Docs on modules
- Consider trampolining `to_mesh`. My call stack seems needlessly - Consider trampolining `to_mesh`. My call stack seems needlessly
deep in spots. Can I make tail-recursive? deep in spots. Can I make tail-recursive?
- Grep for all TODOs in code, really. - Grep for all TODOs in code, really.
- Look at everything in README.md in automata_scratch. - Look at everything in README.md in automata_scratch.
- Implement some of the tougher examples from the above too, e.g. the - Implement some of the tougher examples from the above too, e.g. the
triple nested spiral. See `examples.py`. triple nested spiral. See `examples.py`.
- Actual Rust-style docs!
## If I'm bored: ## If I'm bored:

View File

@ -243,8 +243,6 @@ fn ram_horn() -> RuleStep {
faces: vec![ faces: vec![
Tag::Parent(0), Tag::Parent(2), Tag::Parent(1), Tag::Parent(0), Tag::Parent(2), Tag::Parent(1),
Tag::Parent(0), Tag::Parent(3), Tag::Parent(2), Tag::Parent(0), Tag::Parent(3), Tag::Parent(2),
// TODO: Parent in 'final_geom' refers always to vertices
// in 'geom' - right?
], ],
}; };
RuleStep { RuleStep {
@ -260,6 +258,30 @@ fn ram_horn() -> RuleStep {
} }
} }
/*
fn ram_horn_branch() -> RuleStep {
}
*/
/*
pub fn twist() -> RuleStep {
let ang=0.1;
let dz=0.2;
let dx0=2;
let count=4;
let scale=0.98;
let seed = vec![
vertex(-0.5, -0.5, 0),
vertex(-0.5, 0.5, 0),
vertex( 0.5, 0.5, 0),
vertex( 0.5, -0.5, 0),
];
}
*/
pub fn main() { pub fn main() {
let run_test = |r: Rule, iters, name| { let run_test = |r: Rule, iters, name| {