Commit 5ac4264d authored by LiberIT's avatar LiberIT

updates for usability

parent 9ea52313
......@@ -14,3 +14,32 @@ check ./data folder for outgoing scad, txt and svg files
can add the contents of data/out.scad to tree.scad to see what the forest garden
plus property looks like.
Unless you have an extremely fast computer it would be prudent to first open
tree.scad in OpenSCAD and get out to a zoom where you can see the whole property
easily. Then copy paste the contents of out.scad to the end in the editor.
for example using
cat data/out.scad |xclip
Note you should double check the plants are suitable for your soil and hardyness
before buying, Plants for a future database is not infallible. You can also
update the sql file according to your preferences. Also some of the hardyness
set at 0 are not actually hardy in zone 0, but the pfaf people simply didn't
know the hardiness at time of entry, so they may need to be updated.
Another example the server.js script be default ignores (non nitrogen fixers) with
edibility Rating less than 3. So you may want to either lower that, or raise the
edibility rating of desirable plants higher than 3. For example the humble
Inkberry (Ilex glabra) is the only caffeine leaf bearing shrub in hardyness
zones 3-7 but by default it's edibility is only 1. Can raise that to three for
this evergreen tea/coffee substitue to be part of your edible food forest
garden.
TODO:
There is still much to be done, for instance splitting it into rows, so can
actually walk between the plants and harvest. Also if your property is not
completely flat you may need to make some adjustments to how you distribute your
plants. Every site has it's own specific needs. This is for generic
recommendations only. No warranty.
......@@ -36,7 +36,7 @@ const tree_height = [5,15]; /* =>, < meters */
const shrub_height = [1.5,5]; /* =>, < meters */
const herb_height = [0.5,1.5]; /* =>, < meters */
const ground_cover_height = [0, 0.5]; /* =>, < meters */
const hardyness = 2;
const hardyness = 5;
const input_json = {
Hardyness: hardyness,
......@@ -95,7 +95,11 @@ const input_json = {
]
};
const strict = true;
const strict = "true";
function derive_depth(height) {
return height; //height/Math.tan(0.4);
}
function check_available(config, plant) {
return config.available.filter((name) => {
......@@ -405,16 +409,12 @@ function fill_height_row(full_plant_list, height, row_length) {
return total;
}
function derive_depth(height) {
return height/Math.tan(0.4);
}
function row_to_SCAD(row_plants, direction) {
let row_fill = 0;
return row_plants.reduce((total, plant, index) => {
const depth = land_offset + derive_depth(plant.Height);
const radius = derive_radius(plant);
const overlap_reduction = plant.Height < 5? 2:
plant.Height > 10? -1/golden: 0;
const overlap_reduction = derive_overlap_reduction(plant.Height);
//const this_crown_overlap = crown_overlap - overlap_reduction;
const offset = plant.Height < 5 && index % 2 == 0? radius : 0;
const spacing = (radius + radius*overlap_reduction);
......
......@@ -179,4 +179,4 @@ slough2();
tinyhome();
person();
//
\ No newline at end of file
// add lines from out.scad after
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment