Browse Source

Add pipes and hoses

master
Fen Dweller 4 years ago
parent
commit
c01c7264c8
12 changed files with 79 additions and 2 deletions
  1. +1
    -0
      .gitignore
  2. +42
    -0
      media/attribution.js
  3. +1
    -0
      media/objects/hoses/1 Inch Fire Hose.svg
  4. +1
    -0
      media/objects/hoses/1.5 Inch Fire Hose.svg
  5. +1
    -0
      media/objects/hoses/1.75 Inch Fire Hose.svg
  6. +1
    -0
      media/objects/hoses/2.5 Inch Fire Hose.svg
  7. +1
    -0
      media/objects/hoses/4 Inch Fire Hose.svg
  8. +1
    -0
      media/objects/hoses/5 Inch Fire Hose.svg
  9. +1
    -0
      media/objects/hoses/Garden Hose.svg
  10. +1
    -0
      media/objects/pipes/12 Inch Culvert.svg
  11. +1
    -0
      media/objects/pipes/24 Inch Culvert.svg
  12. +27
    -2
      presets/objects.js

+ 1
- 0
.gitignore View File

@@ -0,0 +1 @@
illustrator/

+ 42
- 0
media/attribution.js View File

@@ -17350,6 +17350,48 @@ const attributionData = {
"chemicalcrux"
]
},
{
prefix: "./media/objects/hoses/",
files: [
{ name: "Garden Hose.svg", source: null }
],
authors: [
"chemicalcrux"
],
citations: [
"https://www.walmart.com/ip/Watts-Garden-Hose-7-8-Od-X-150-Bulk-Roll/888779038"
]
},
{
prefix: "./media/objects/hoses/",
files: [
{ name: "1 Inch Fire Hose.svg", source: null },
{ name: "1.5 Inch Fire Hose.svg", source: null },
{ name: "1.75 Inch Fire Hose.svg", source: null },
{ name: "2.5 Inch Fire Hose.svg", source: null },
{ name: "4 Inch Fire Hose.svg", source: null },
{ name: "5 Inch Fire Hose.svg", source: null },
],
authors: [
"chemicalcrux"
],
citations: [
"https://www.nfpa.org/Assets/files/AboutTheCodes/1961/1961_A2017_FHS-AAA_PreFDagenda_04-15.pdf"
]
},
{
prefix: "./media/objects/pipes/",
files: [
{ name: "12 Inch Culvert.svg", source: null },
{ name: "24 Inch Culvert.svg", source: null },
],
authors: [
"chemicalcrux"
],
citations: [
"https://www.tractorsupply.com/tsc/catalog/culvert-pipe"
]
},
{
prefix: "./media/real-buildings/",
all: "https://wiki.openstreetmap.org/wiki/Blender",


+ 1
- 0
media/objects/hoses/1 Inch Fire Hose.svg View File

@@ -0,0 +1 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="500" height="500" viewBox="0 0 500 500"><defs><style>.cls-1{fill:#333;opacity:0.5;}</style></defs><path class="cls-1" d="M250,475A225,225,0,0,1,90.9,90.9,225,225,0,0,1,409.1,409.1,223.52,223.52,0,0,1,250,475Z"/><path d="M250,50A200,200,0,0,1,391.42,391.42,200,200,0,1,1,108.58,108.58,198.66,198.66,0,0,1,250,50m0-50C111.93,0,0,111.93,0,250S111.93,500,250,500,500,388.07,500,250,388.07,0,250,0Z"/></svg>

+ 1
- 0
media/objects/hoses/1.5 Inch Fire Hose.svg View File

@@ -0,0 +1 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="500" height="500" viewBox="0 0 500 500"><defs><style>.cls-1{fill:#333;opacity:0.5;}</style></defs><path class="cls-1" d="M250,476.35A226.34,226.34,0,0,1,90,90a226.34,226.34,0,1,1,320.1,320.1A224.83,224.83,0,0,1,250,476.35Z"/><path d="M250,47.3a202.7,202.7,0,0,1,143.33,346A202.7,202.7,0,1,1,106.67,106.67,201.35,201.35,0,0,1,250,47.3M250,0C111.93,0,0,111.93,0,250S111.93,500,250,500,500,388.07,500,250,388.07,0,250,0Z"/></svg>

+ 1
- 0
media/objects/hoses/1.75 Inch Fire Hose.svg View File

@@ -0,0 +1 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="500" height="500" viewBox="0 0 500 500"><defs><style>.cls-1{fill:#333;opacity:0.5;}</style></defs><path class="cls-1" d="M250,479.17A229.17,229.17,0,0,1,88,88,229.17,229.17,0,1,1,412,412.05,227.67,227.67,0,0,1,250,479.17Z"/><path d="M250,41.67A208.33,208.33,0,0,1,397.31,397.31,208.33,208.33,0,1,1,102.69,102.69,206.94,206.94,0,0,1,250,41.67M250,0C111.93,0,0,111.93,0,250S111.93,500,250,500,500,388.07,500,250,388.07,0,250,0Z"/></svg>

+ 1
- 0
media/objects/hoses/2.5 Inch Fire Hose.svg View File

@@ -0,0 +1 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="500" height="500" viewBox="0 0 500 500"><defs><style>.cls-1{fill:#333;opacity:0.5;}</style></defs><path class="cls-1" d="M250,479.17A229.17,229.17,0,0,1,88,88,229.17,229.17,0,1,1,412,412.05,227.67,227.67,0,0,1,250,479.17Z"/><path d="M250,41.67A208.33,208.33,0,0,1,397.31,397.31,208.33,208.33,0,1,1,102.69,102.69,206.94,206.94,0,0,1,250,41.67M250,0C111.93,0,0,111.93,0,250S111.93,500,250,500,500,388.07,500,250,388.07,0,250,0Z"/></svg>

+ 1
- 0
media/objects/hoses/4 Inch Fire Hose.svg View File

@@ -0,0 +1 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="500" height="500" viewBox="0 0 500 500"><defs><style>.cls-1{fill:#333;opacity:0.5;}</style></defs><path class="cls-1" d="M250,486.11A236.12,236.12,0,0,1,83,83,236.12,236.12,0,0,1,417,417,234.6,234.6,0,0,1,250,486.11Z"/><path d="M250,27.78a222.29,222.29,0,0,1,86.49,427,222.29,222.29,0,0,1-173-409.54A220.82,220.82,0,0,1,250,27.78M250,0C111.93,0,0,111.93,0,250S111.93,500,250,500,500,388.07,500,250,388.07,0,250,0Z"/></svg>

+ 1
- 0
media/objects/hoses/5 Inch Fire Hose.svg View File

@@ -0,0 +1 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="500" height="500" viewBox="0 0 500 500"><defs><style>.cls-1{fill:#333;opacity:0.5;}</style></defs><path class="cls-1" d="M250,486.61A236.61,236.61,0,0,1,82.69,82.69,236.61,236.61,0,0,1,417.31,417.31,235.06,235.06,0,0,1,250,486.61Z"/><path d="M250,26.79a223.27,223.27,0,0,1,86.88,428.89A223.28,223.28,0,0,1,163.12,44.32,221.65,221.65,0,0,1,250,26.79M250,0C111.93,0,0,111.93,0,250S111.93,500,250,500,500,388.07,500,250,388.07,0,250,0Z"/></svg>

+ 1
- 0
media/objects/hoses/Garden Hose.svg View File

@@ -0,0 +1 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="500" height="500" viewBox="0 0 500 500"><defs><style>.cls-1{fill:#333;opacity:0.5;}</style></defs><path class="cls-1" d="M250,469.7a219.7,219.7,0,0,1-155.35-375,219.7,219.7,0,1,1,310.7,310.7A218.26,218.26,0,0,1,250,469.7Z"/><path d="M250,60.61a189.39,189.39,0,1,1-133.92,55.47A188.15,188.15,0,0,1,250,60.61M250,0C111.93,0,0,111.93,0,250S111.93,500,250,500,500,388.07,500,250,388.07,0,250,0Z"/></svg>

+ 1
- 0
media/objects/pipes/12 Inch Culvert.svg View File

@@ -0,0 +1 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="500" height="500" viewBox="0 0 500 500"><defs><style>.cls-1{fill:#333;opacity:0.5;}</style></defs><path class="cls-1" d="M250,476.7A226.71,226.71,0,0,1,89.7,89.7,226.7,226.7,0,0,1,410.3,410.3,225.26,225.26,0,0,1,250,476.7Z"/><path d="M250,46.61A203.39,203.39,0,0,1,393.82,393.82,203.39,203.39,0,0,1,106.18,106.18,202.09,202.09,0,0,1,250,46.61M250,0C111.93,0,0,111.93,0,250S111.93,500,250,500,500,388.07,500,250,388.07,0,250,0Z"/></svg>

+ 1
- 0
media/objects/pipes/24 Inch Culvert.svg View File

@@ -0,0 +1 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="500" height="500" viewBox="0 0 500 500"><defs><style>.cls-1{fill:#333;opacity:0.5;}</style></defs><path class="cls-1" d="M250,487.15A237.15,237.15,0,0,1,82.31,82.31,237.15,237.15,0,1,1,417.69,417.69,235.59,235.59,0,0,1,250,487.15Z"/><path d="M250,25.7a224.37,224.37,0,0,1,87.3,431A224.36,224.36,0,0,1,162.7,43.32,222.88,222.88,0,0,1,250,25.7M250,0C111.93,0,0,111.93,0,250S111.93,500,250,500,500,388.07,500,250,388.07,0,250,0Z"/></svg>

+ 27
- 2
presets/objects.js View File

@@ -1,4 +1,4 @@
function makeObject(name, viewInfo) {
function makeObject(name, viewInfo, sizes = []) {
views = {};

Object.entries(viewInfo).forEach(([key, value]) => {
@@ -44,7 +44,7 @@ function makeObject(name, viewInfo) {
}
});

return makeEntity({ name: name }, views);
return makeEntity({ name: name }, views, sizes);
}

function makeHeight(info, category, prefix = "", type = "objects", rename = true) {
@@ -726,6 +726,31 @@ function makeObjects() {
""
))

results.push(makeHeight(
[
["Garden Hose", 0.875, "inches"],
["1 Inch Fire Hose", 1.25, "inches"],
["1.5 Inch Fire Hose", 1.85, "inches"],
["1.75 Inch Fire Hose", 2.1, "inches"],
["2.5 Inch Fire Hose", 3, "inches"],
["4 Inch Fire Hose", 4.5, "inches"],
["5 Inch Fire Hose", 5.6, "inches"],
],
"Hoses",
""
))

results.push(makeHeight(
[
["12 Inch Culvert", 14.75, "inches"],
["24 Inch Culvert", 26.75, "inches"],
],
"Pipes",
""
))



results.sort((b1, b2) => {
e1 = b1.constructor();


Loading…
Cancel
Save