浏览代码

Add straws

master
Fen Dweller 3 年前
父节点
当前提交
130a4e2a27
共有 10 个文件被更改,包括 427 次插入9 次删除
  1. +52
    -0
      media/objects/Straws/Boba-Front.svg
  2. +52
    -0
      media/objects/Straws/Boba-Top.svg
  3. +52
    -0
      media/objects/Straws/Normal-Front.svg
  4. +52
    -0
      media/objects/Straws/Normal-Top.svg
  5. +52
    -0
      media/objects/Straws/Smoothie-Front.svg
  6. +52
    -0
      media/objects/Straws/Smoothie-Top.svg
  7. +52
    -0
      media/objects/Straws/Wide-Front.svg
  8. +52
    -0
      media/objects/Straws/Wide-Top.svg
  9. +1
    -0
      presets/objects.js
  10. +10
    -9
      scripts/blender-model.py

+ 52
- 0
media/objects/Straws/Boba-Front.svg 查看文件

@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg16"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 100.3 1672.15"
height="1672.15pt"
width="100.3pt"
version="1.0">
<defs
id="defs20" />
<metadata
id="metadata2">
Created by potrace 1.16, written by Peter Selinger 2001-2019
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
style="fill:#000000;stroke:none"
id="g6"
transform="matrix(0.1,0,0,-0.1,-949.85,1836.075)">
<path
id="path4"
d="m 9512,18348 c -18,-18 -18,-16678 0,-16696 17,-17 959,-17 976,0 18,18 18,16678 0,16696 -17,17 -959,17 -976,0 z" />
</g>
<g
style="fill:#1a1a1a;stroke:none"
id="g10"
transform="matrix(0.1,0,0,-0.1,-949.85,1836.075)">
<path
id="path8"
d="M 9550,10000 V 1690 h 450 450 v 8310 8310 h -450 -450 z" />
</g>
<g
style="fill:#333333;stroke:none"
id="g14"
transform="matrix(0.1,0,0,-0.1,-949.85,1836.075)">
<path
id="path12"
d="M 9550,10000 V 1690 h 450 450 v 8310 8310 h -450 -450 z" />
</g>
</svg>

+ 52
- 0
media/objects/Straws/Boba-Top.svg 查看文件

@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg16"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 1670.5 1670.7383"
height="1670.7383pt"
width="1670.5pt"
version="1.0">
<defs
id="defs20" />
<metadata
id="metadata2">
Created by potrace 1.16, written by Peter Selinger 2001-2019
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
style="fill:#000000;stroke:none"
id="g6"
transform="matrix(0.1,0,0,-0.1,-164.75,1835.5382)">
<path
id="path4"
d="m 9750,18354 c -63,-2 -216,-11 -340,-19 -2498,-177 -4791,-1469 -6235,-3515 -881,-1249 -1392,-2680 -1511,-4230 -22,-292 -22,-888 0,-1180 107,-1400 537,-2710 1270,-3870 1342,-2123 3566,-3532 6056,-3835 360,-43 604,-57 1010,-57 406,0 650,14 1010,57 2340,285 4456,1550 5815,3475 881,1249 1392,2680 1511,4230 22,292 22,888 0,1180 -119,1550 -630,2981 -1511,4230 -1443,2044 -3737,3339 -6230,3514 -218,16 -644,25 -845,20 z m 785,-1110 c 1434,-103 2817,-639 3957,-1535 438,-345 872,-779 1217,-1217 818,-1042 1335,-2281 1500,-3597 71,-566 71,-1224 0,-1790 -180,-1443 -778,-2777 -1738,-3885 -161,-186 -505,-530 -691,-691 -1108,-960 -2442,-1558 -3885,-1738 -566,-71 -1224,-71 -1790,0 -1443,180 -2777,778 -3885,1738 -186,161 -530,505 -691,691 -960,1108 -1558,2442 -1738,3885 -54,430 -69,1017 -36,1430 126,1595 731,3042 1774,4245 161,186 505,530 691,691 829,719 1786,1236 2820,1524 825,229 1635,310 2495,249 z" />
</g>
<g
style="fill:#1a1a1a;stroke:none"
id="g10"
transform="matrix(0.1,0,0,-0.1,-164.75,1835.5382)">
<path
id="path8"
d="m 9675,18300 c -1606,-65 -3157,-591 -4465,-1515 -401,-283 -712,-547 -1080,-915 -466,-466 -827,-916 -1162,-1450 -729,-1163 -1145,-2434 -1254,-3835 -22,-286 -22,-884 0,-1170 109,-1401 525,-2672 1254,-3835 335,-534 696,-984 1162,-1450 466,-466 916,-827 1450,-1162 1163,-729 2434,-1145 3835,-1254 286,-22 884,-22 1170,0 1401,109 2672,525 3835,1254 534,335 984,696 1450,1162 466,466 827,916 1162,1450 729,1163 1145,2434 1254,3835 22,286 22,884 0,1170 -89,1136 -368,2149 -866,3145 -1170,2339 -3398,3997 -5980,4450 -566,99 -1207,143 -1765,120 z m 859,-1006 c 1451,-104 2838,-642 3988,-1545 441,-347 880,-786 1227,-1227 824,-1049 1346,-2301 1510,-3622 72,-578 72,-1222 0,-1800 -164,-1321 -686,-2573 -1510,-3622 -347,-441 -786,-880 -1227,-1227 -1049,-824 -2301,-1346 -3622,-1510 -578,-72 -1222,-72 -1800,0 -1321,164 -2573,686 -3622,1510 -441,347 -880,786 -1227,1227 -824,1049 -1346,2301 -1510,3622 -72,578 -72,1222 0,1800 164,1321 686,2573 1510,3622 347,441 786,880 1227,1227 863,678 1853,1148 2927,1389 696,157 1400,208 2129,156 z" />
</g>
<g
style="fill:#333333;stroke:none"
id="g14"
transform="matrix(0.1,0,0,-0.1,-164.75,1835.5382)">
<path
id="path12"
d="m 9675,18300 c -1606,-65 -3157,-591 -4465,-1515 -401,-283 -712,-547 -1080,-915 -466,-466 -827,-916 -1162,-1450 -729,-1163 -1145,-2434 -1254,-3835 -22,-286 -22,-884 0,-1170 109,-1401 525,-2672 1254,-3835 335,-534 696,-984 1162,-1450 466,-466 916,-827 1450,-1162 1163,-729 2434,-1145 3835,-1254 286,-22 884,-22 1170,0 1401,109 2672,525 3835,1254 534,335 984,696 1450,1162 466,466 827,916 1162,1450 729,1163 1145,2434 1254,3835 22,286 22,884 0,1170 -89,1136 -368,2149 -866,3145 -1170,2339 -3398,3997 -5980,4450 -566,99 -1207,143 -1765,120 z m 859,-1006 c 1451,-104 2838,-642 3988,-1545 441,-347 880,-786 1227,-1227 824,-1049 1346,-2301 1510,-3622 72,-578 72,-1222 0,-1800 -164,-1321 -686,-2573 -1510,-3622 -347,-441 -786,-880 -1227,-1227 -1049,-824 -2301,-1346 -3622,-1510 -578,-72 -1222,-72 -1800,0 -1321,164 -2573,686 -3622,1510 -441,347 -880,786 -1227,1227 -824,1049 -1346,2301 -1510,3622 -72,578 -72,1222 0,1800 164,1321 686,2573 1510,3622 347,441 786,880 1227,1227 863,678 1853,1148 2927,1389 696,157 1400,208 2129,156 z" />
</g>
</svg>

+ 52
- 0
media/objects/Straws/Normal-Front.svg 查看文件

@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg16"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 51.337502 1671.3698"
height="1671.3698pt"
width="51.337502pt"
version="1.0">
<defs
id="defs20" />
<metadata
id="metadata2">
Created by potrace 1.16, written by Peter Selinger 2001-2019
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
style="fill:#000000;stroke:none"
id="g6"
transform="matrix(0.1,0,0,-0.1,-974.1625,1835.8697)">
<path
id="path4"
d="m 9745,18348 c -3,-7 -4,-3768 -3,-8358 l 3,-8345 h 255 255 v 8355 8355 l -253,3 c -197,2 -254,0 -257,-10 z" />
</g>
<g
style="fill:#1a1a1a;stroke:none"
id="g10"
transform="matrix(0.1,0,0,-0.1,-974.1625,1835.8697)">
<path
id="path8"
d="M 9790,10000 V 1690 h 210 210 v 8310 8310 h -210 -210 z" />
</g>
<g
style="fill:#333333;stroke:none"
id="g14"
transform="matrix(0.1,0,0,-0.1,-974.1625,1835.8697)">
<path
id="path12"
d="M 9790,10000 V 1690 h 210 210 v 8310 8310 h -210 -210 z" />
</g>
</svg>

+ 52
- 0
media/objects/Straws/Normal-Top.svg 查看文件

@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg16"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 1670.5 1670.7383"
height="1670.7383pt"
width="1670.5pt"
version="1.0">
<defs
id="defs20" />
<metadata
id="metadata2">
Created by potrace 1.16, written by Peter Selinger 2001-2019
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
style="fill:#000000;stroke:none"
id="g6"
transform="matrix(0.1,0,0,-0.1,-164.75,1835.5382)">
<path
id="path4"
d="m 9750,18354 c -63,-2 -216,-11 -340,-19 -2498,-177 -4791,-1469 -6235,-3515 -881,-1249 -1392,-2680 -1511,-4230 -22,-292 -22,-888 0,-1180 119,-1550 630,-2981 1511,-4230 1359,-1925 3475,-3190 5815,-3475 360,-43 604,-57 1010,-57 406,0 650,14 1010,57 2340,285 4456,1550 5815,3475 881,1249 1392,2680 1511,4230 22,292 22,888 0,1180 -119,1550 -630,2981 -1511,4230 -1443,2044 -3737,3339 -6230,3514 -218,16 -644,25 -845,20 z m 785,-1110 c 1434,-103 2817,-639 3957,-1535 438,-345 872,-779 1217,-1217 818,-1042 1335,-2281 1500,-3597 71,-566 71,-1224 0,-1790 -180,-1443 -778,-2777 -1738,-3885 -161,-186 -505,-530 -691,-691 -1108,-960 -2442,-1558 -3885,-1738 -566,-71 -1224,-71 -1790,0 -1443,180 -2777,778 -3885,1738 -186,161 -530,505 -691,691 -960,1108 -1558,2442 -1738,3885 -54,430 -69,1017 -36,1430 126,1595 731,3042 1774,4245 161,186 505,530 691,691 829,719 1786,1236 2820,1524 825,229 1635,310 2495,249 z" />
</g>
<g
style="fill:#1a1a1a;stroke:none"
id="g10"
transform="matrix(0.1,0,0,-0.1,-164.75,1835.5382)">
<path
id="path8"
d="m 9675,18300 c -1606,-65 -3157,-591 -4465,-1515 -401,-283 -712,-547 -1080,-915 -466,-466 -827,-916 -1162,-1450 -729,-1163 -1145,-2434 -1254,-3835 -22,-286 -22,-884 0,-1170 109,-1401 525,-2672 1254,-3835 335,-534 696,-984 1162,-1450 466,-466 916,-827 1450,-1162 1163,-729 2434,-1145 3835,-1254 286,-22 884,-22 1170,0 1401,109 2672,525 3835,1254 534,335 984,696 1450,1162 466,466 827,916 1162,1450 729,1163 1145,2434 1254,3835 22,286 22,884 0,1170 -89,1136 -368,2149 -866,3145 -1170,2339 -3398,3997 -5980,4450 -566,99 -1207,143 -1765,120 z m 859,-1006 c 1451,-104 2838,-642 3988,-1545 441,-347 880,-786 1227,-1227 824,-1049 1346,-2301 1510,-3622 72,-578 72,-1222 0,-1800 -164,-1321 -686,-2573 -1510,-3622 -347,-441 -786,-880 -1227,-1227 -1049,-824 -2301,-1346 -3622,-1510 -578,-72 -1222,-72 -1800,0 -1321,164 -2573,686 -3622,1510 -441,347 -880,786 -1227,1227 -824,1049 -1346,2301 -1510,3622 -72,578 -72,1222 0,1800 164,1321 686,2573 1510,3622 347,441 786,880 1227,1227 863,678 1853,1148 2927,1389 696,157 1400,208 2129,156 z" />
</g>
<g
style="fill:#333333;stroke:none"
id="g14"
transform="matrix(0.1,0,0,-0.1,-164.75,1835.5382)">
<path
id="path12"
d="m 9675,18300 c -1606,-65 -3157,-591 -4465,-1515 -401,-283 -712,-547 -1080,-915 -466,-466 -827,-916 -1162,-1450 -729,-1163 -1145,-2434 -1254,-3835 -22,-286 -22,-884 0,-1170 109,-1401 525,-2672 1254,-3835 335,-534 696,-984 1162,-1450 466,-466 916,-827 1450,-1162 1163,-729 2434,-1145 3835,-1254 286,-22 884,-22 1170,0 1401,109 2672,525 3835,1254 534,335 984,696 1450,1162 466,466 827,916 1162,1450 729,1163 1145,2434 1254,3835 22,286 22,884 0,1170 -89,1136 -368,2149 -866,3145 -1170,2339 -3398,3997 -5980,4450 -566,99 -1207,143 -1765,120 z m 859,-1006 c 1451,-104 2838,-642 3988,-1545 441,-347 880,-786 1227,-1227 824,-1049 1346,-2301 1510,-3622 72,-578 72,-1222 0,-1800 -164,-1321 -686,-2573 -1510,-3622 -347,-441 -786,-880 -1227,-1227 -1049,-824 -2301,-1346 -3622,-1510 -578,-72 -1222,-72 -1800,0 -1321,164 -2573,686 -3622,1510 -441,347 -880,786 -1227,1227 -824,1049 -1346,2301 -1510,3622 -72,578 -72,1222 0,1800 164,1321 686,2573 1510,3622 347,441 786,880 1227,1227 863,678 1853,1148 2927,1389 696,157 1400,208 2129,156 z" />
</g>
</svg>

+ 52
- 0
media/objects/Straws/Smoothie-Front.svg 查看文件

@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg16"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 75.337502 1671.3698"
height="1671.3698pt"
width="75.337502pt"
version="1.0">
<defs
id="defs20" />
<metadata
id="metadata2">
Created by potrace 1.16, written by Peter Selinger 2001-2019
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
style="fill:#000000;stroke:none"
id="g6"
transform="matrix(0.1,0,0,-0.1,-962.1625,1835.8697)">
<path
id="path4"
d="m 9625,18348 c -3,-7 -4,-3768 -3,-8358 l 3,-8345 h 375 375 v 8355 8355 l -373,3 c -293,2 -374,0 -377,-10 z" />
</g>
<g
style="fill:#1a1a1a;stroke:none"
id="g10"
transform="matrix(0.1,0,0,-0.1,-962.1625,1835.8697)">
<path
id="path8"
d="M 9670,10000 V 1690 h 330 330 v 8310 8310 h -330 -330 z" />
</g>
<g
style="fill:#333333;stroke:none"
id="g14"
transform="matrix(0.1,0,0,-0.1,-962.1625,1835.8697)">
<path
id="path12"
d="M 9670,10000 V 1690 h 330 330 v 8310 8310 h -330 -330 z" />
</g>
</svg>

+ 52
- 0
media/objects/Straws/Smoothie-Top.svg 查看文件

@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg16"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 1670.5 1670.7383"
height="1670.7383pt"
width="1670.5pt"
version="1.0">
<defs
id="defs20" />
<metadata
id="metadata2">
Created by potrace 1.16, written by Peter Selinger 2001-2019
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
style="fill:#000000;stroke:none"
id="g6"
transform="matrix(0.1,0,0,-0.1,-164.75,1835.5382)">
<path
id="path4"
d="m 9750,18354 c -63,-2 -216,-11 -340,-19 -2498,-177 -4791,-1469 -6235,-3515 -881,-1249 -1392,-2680 -1511,-4230 -22,-292 -22,-888 0,-1180 119,-1550 630,-2981 1511,-4230 1359,-1925 3475,-3190 5815,-3475 360,-43 604,-57 1010,-57 406,0 650,14 1010,57 2340,285 4456,1550 5815,3475 881,1249 1392,2680 1511,4230 22,292 22,888 0,1180 -119,1550 -630,2981 -1511,4230 -1443,2044 -3737,3339 -6230,3514 -218,16 -644,25 -845,20 z m 785,-1110 c 1434,-103 2817,-639 3957,-1535 438,-345 872,-779 1217,-1217 818,-1042 1335,-2281 1500,-3597 71,-566 71,-1224 0,-1790 -180,-1443 -778,-2777 -1738,-3885 -161,-186 -505,-530 -691,-691 -1108,-960 -2442,-1558 -3885,-1738 -566,-71 -1224,-71 -1790,0 -1443,180 -2777,778 -3885,1738 -186,161 -530,505 -691,691 -960,1108 -1558,2442 -1738,3885 -54,430 -69,1017 -36,1430 126,1595 731,3042 1774,4245 161,186 505,530 691,691 829,719 1786,1236 2820,1524 825,229 1635,310 2495,249 z" />
</g>
<g
style="fill:#1a1a1a;stroke:none"
id="g10"
transform="matrix(0.1,0,0,-0.1,-164.75,1835.5382)">
<path
id="path8"
d="m 9675,18300 c -1606,-65 -3157,-591 -4465,-1515 -401,-283 -712,-547 -1080,-915 -466,-466 -827,-916 -1162,-1450 -729,-1163 -1145,-2434 -1254,-3835 -22,-286 -22,-884 0,-1170 109,-1401 525,-2672 1254,-3835 335,-534 696,-984 1162,-1450 466,-466 916,-827 1450,-1162 1163,-729 2434,-1145 3835,-1254 286,-22 884,-22 1170,0 1401,109 2672,525 3835,1254 534,335 984,696 1450,1162 466,466 827,916 1162,1450 729,1163 1145,2434 1254,3835 22,286 22,884 0,1170 -89,1136 -368,2149 -866,3145 -1170,2339 -3398,3997 -5980,4450 -566,99 -1207,143 -1765,120 z m 859,-1006 c 1451,-104 2838,-642 3988,-1545 441,-347 880,-786 1227,-1227 824,-1049 1346,-2301 1510,-3622 72,-578 72,-1222 0,-1800 -164,-1321 -686,-2573 -1510,-3622 -347,-441 -786,-880 -1227,-1227 -1049,-824 -2301,-1346 -3622,-1510 -578,-72 -1222,-72 -1800,0 -1321,164 -2573,686 -3622,1510 -441,347 -880,786 -1227,1227 -824,1049 -1346,2301 -1510,3622 -72,578 -72,1222 0,1800 164,1321 686,2573 1510,3622 347,441 786,880 1227,1227 863,678 1853,1148 2927,1389 696,157 1400,208 2129,156 z" />
</g>
<g
style="fill:#333333;stroke:none"
id="g14"
transform="matrix(0.1,0,0,-0.1,-164.75,1835.5382)">
<path
id="path12"
d="m 9675,18300 c -1606,-65 -3157,-591 -4465,-1515 -401,-283 -712,-547 -1080,-915 -466,-466 -827,-916 -1162,-1450 -729,-1163 -1145,-2434 -1254,-3835 -22,-286 -22,-884 0,-1170 109,-1401 525,-2672 1254,-3835 335,-534 696,-984 1162,-1450 466,-466 916,-827 1450,-1162 1163,-729 2434,-1145 3835,-1254 286,-22 884,-22 1170,0 1401,109 2672,525 3835,1254 534,335 984,696 1450,1162 466,466 827,916 1162,1450 729,1163 1145,2434 1254,3835 22,286 22,884 0,1170 -89,1136 -368,2149 -866,3145 -1170,2339 -3398,3997 -5980,4450 -566,99 -1207,143 -1765,120 z m 859,-1006 c 1451,-104 2838,-642 3988,-1545 441,-347 880,-786 1227,-1227 824,-1049 1346,-2301 1510,-3622 72,-578 72,-1222 0,-1800 -164,-1321 -686,-2573 -1510,-3622 -347,-441 -786,-880 -1227,-1227 -1049,-824 -2301,-1346 -3622,-1510 -578,-72 -1222,-72 -1800,0 -1321,164 -2573,686 -3622,1510 -441,347 -880,786 -1227,1227 -824,1049 -1346,2301 -1510,3622 -72,578 -72,1222 0,1800 164,1321 686,2573 1510,3622 347,441 786,880 1227,1227 863,678 1853,1148 2927,1389 696,157 1400,208 2129,156 z" />
</g>
</svg>

+ 52
- 0
media/objects/Straws/Wide-Front.svg 查看文件

@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg16"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 67.337502 1671.3698"
height="1671.3698pt"
width="67.337502pt"
version="1.0">
<defs
id="defs20" />
<metadata
id="metadata2">
Created by potrace 1.16, written by Peter Selinger 2001-2019
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
style="fill:#000000;stroke:none"
id="g6"
transform="matrix(0.1,0,0,-0.1,-966.1625,1835.8697)">
<path
id="path4"
d="m 9665,18348 c -3,-7 -4,-3768 -3,-8358 l 3,-8345 h 335 335 v 8355 8355 l -333,3 c -261,2 -334,0 -337,-10 z" />
</g>
<g
style="fill:#1a1a1a;stroke:none"
id="g10"
transform="matrix(0.1,0,0,-0.1,-966.1625,1835.8697)">
<path
id="path8"
d="M 9710,10000 V 1690 h 290 290 v 8310 8310 h -290 -290 z" />
</g>
<g
style="fill:#333333;stroke:none"
id="g14"
transform="matrix(0.1,0,0,-0.1,-966.1625,1835.8697)">
<path
id="path12"
d="M 9710,10000 V 1690 h 290 290 v 8310 8310 h -290 -290 z" />
</g>
</svg>

+ 52
- 0
media/objects/Straws/Wide-Top.svg 查看文件

@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg16"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 1670.5 1670.7383"
height="1670.7383pt"
width="1670.5pt"
version="1.0">
<defs
id="defs20" />
<metadata
id="metadata2">
Created by potrace 1.16, written by Peter Selinger 2001-2019
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
style="fill:#000000;stroke:none"
id="g6"
transform="matrix(0.1,0,0,-0.1,-164.75,1835.5382)">
<path
id="path4"
d="m 9750,18354 c -63,-2 -216,-11 -340,-19 -2498,-177 -4791,-1469 -6235,-3515 -881,-1249 -1392,-2680 -1511,-4230 -22,-292 -22,-888 0,-1180 119,-1550 630,-2981 1511,-4230 1359,-1925 3475,-3190 5815,-3475 360,-43 604,-57 1010,-57 406,0 650,14 1010,57 2340,285 4456,1550 5815,3475 881,1249 1392,2680 1511,4230 22,292 22,888 0,1180 -119,1550 -630,2981 -1511,4230 -1443,2044 -3737,3339 -6230,3514 -218,16 -644,25 -845,20 z m 785,-1110 c 1434,-103 2817,-639 3957,-1535 438,-345 872,-779 1217,-1217 818,-1042 1335,-2281 1500,-3597 71,-566 71,-1224 0,-1790 -180,-1443 -778,-2777 -1738,-3885 -161,-186 -505,-530 -691,-691 -1108,-960 -2442,-1558 -3885,-1738 -566,-71 -1224,-71 -1790,0 -1443,180 -2777,778 -3885,1738 -186,161 -530,505 -691,691 -960,1108 -1558,2442 -1738,3885 -54,430 -69,1017 -36,1430 126,1595 731,3042 1774,4245 161,186 505,530 691,691 829,719 1786,1236 2820,1524 825,229 1635,310 2495,249 z" />
</g>
<g
style="fill:#1a1a1a;stroke:none"
id="g10"
transform="matrix(0.1,0,0,-0.1,-164.75,1835.5382)">
<path
id="path8"
d="m 9675,18300 c -1606,-65 -3157,-591 -4465,-1515 -401,-283 -712,-547 -1080,-915 -466,-466 -827,-916 -1162,-1450 -729,-1163 -1145,-2434 -1254,-3835 -22,-286 -22,-884 0,-1170 109,-1401 525,-2672 1254,-3835 335,-534 696,-984 1162,-1450 466,-466 916,-827 1450,-1162 1163,-729 2434,-1145 3835,-1254 286,-22 884,-22 1170,0 1401,109 2672,525 3835,1254 534,335 984,696 1450,1162 466,466 827,916 1162,1450 729,1163 1145,2434 1254,3835 22,286 22,884 0,1170 -89,1136 -368,2149 -866,3145 -1170,2339 -3398,3997 -5980,4450 -566,99 -1207,143 -1765,120 z m 859,-1006 c 1451,-104 2838,-642 3988,-1545 441,-347 880,-786 1227,-1227 824,-1049 1346,-2301 1510,-3622 72,-578 72,-1222 0,-1800 -164,-1321 -686,-2573 -1510,-3622 -347,-441 -786,-880 -1227,-1227 -1049,-824 -2301,-1346 -3622,-1510 -578,-72 -1222,-72 -1800,0 -1321,164 -2573,686 -3622,1510 -441,347 -880,786 -1227,1227 -824,1049 -1346,2301 -1510,3622 -72,578 -72,1222 0,1800 164,1321 686,2573 1510,3622 347,441 786,880 1227,1227 863,678 1853,1148 2927,1389 696,157 1400,208 2129,156 z" />
</g>
<g
style="fill:#333333;stroke:none"
id="g14"
transform="matrix(0.1,0,0,-0.1,-164.75,1835.5382)">
<path
id="path12"
d="m 9675,18300 c -1606,-65 -3157,-591 -4465,-1515 -401,-283 -712,-547 -1080,-915 -466,-466 -827,-916 -1162,-1450 -729,-1163 -1145,-2434 -1254,-3835 -22,-286 -22,-884 0,-1170 109,-1401 525,-2672 1254,-3835 335,-534 696,-984 1162,-1450 466,-466 916,-827 1450,-1162 1163,-729 2434,-1145 3835,-1254 286,-22 884,-22 1170,0 1401,109 2672,525 3835,1254 534,335 984,696 1450,1162 466,466 827,916 1162,1450 729,1163 1145,2434 1254,3835 22,286 22,884 0,1170 -89,1136 -368,2149 -866,3145 -1170,2339 -3398,3997 -5980,4450 -566,99 -1207,143 -1765,120 z m 859,-1006 c 1451,-104 2838,-642 3988,-1545 441,-347 880,-786 1227,-1227 824,-1049 1346,-2301 1510,-3622 72,-578 72,-1222 0,-1800 -164,-1321 -686,-2573 -1510,-3622 -347,-441 -786,-880 -1227,-1227 -1049,-824 -2301,-1346 -3622,-1510 -578,-72 -1222,-72 -1800,0 -1321,164 -2573,686 -3622,1510 -441,347 -880,786 -1227,1227 -824,1049 -1346,2301 -1510,3622 -72,578 -72,1222 0,1800 164,1321 686,2573 1510,3622 347,441 786,880 1227,1227 863,678 1853,1148 2927,1389 696,157 1400,208 2129,156 z" />
</g>
</svg>

+ 1
- 0
presets/objects.js 查看文件

@@ -951,6 +951,7 @@ function makeObjects() {
/* ***Bricks*** */ results.push(makeModel({"name": "Bricks", "kind": "objects", "forms": [{"name": "Cinderblock", "views": [{"name": "Front", "height": 0.1936749964952469, "volume": 0.0072986710396893105}, {"name": "Angled", "height": 0.1936749964952469, "volume": 0.0072986710396893105}, {"name": "Side", "height": 0.1936749964952469, "volume": 0.0072986710396893105}, {"name": "Top", "height": 0.1936749964952469, "volume": 0.0072986710396893105}]}, {"name": "Clay Brick", "views": [{"name": "Front", "height": 0.05714999884366989, "volume": 0.0008421204681292792}, {"name": "Angled", "height": 0.05714999884366989, "volume": 0.0008421204681292792}, {"name": "Side", "height": 0.05714999884366989, "volume": 0.0008421204681292792}, {"name": "Top", "height": 0.10159999877214432, "volume": 0.0008421204681292792}]}]}));
/* ***Barrels*** */ results.push(makeModel({"name": "Barrels", "kind": "objects", "forms": [{"name": "55 Gallon Drum", "views": [{"name": "Front", "height": 0.8716663122177124, "volume": 0.20819799602031708}, {"name": "Top", "height": 0.617232084274292, "volume": 0.20819799602031708}]}, {"name": "Sixer Keg", "views": [{"name": "Front", "height": 0.5937249660491943, "volume": 0.02345781959593296}, {"name": "Top", "height": 0.2349499762058258, "volume": 0.02345781959593296}]}, {"name": "Half Barrel Keg", "views": [{"name": "Front", "height": 0.5937249660491943, "volume": 0.07046438753604889}, {"name": "Top", "height": 0.42044833302497864, "volume": 0.07046438753604889}]}]}));
/* ***Pipettes*** */ results.push(makeModel({"name": "Pipettes", "kind": "objects", "forms": [{"name": "Transfer Pipette", "views": [{"name": "Front", "height": 0.1491980254650116, "volume": 0.20819799602031708}, {"name": "Top", "height": 0.010719738900661469, "volume": 0.20819799602031708}, {"name": "Bottom", "height": 0.010719738900661469, "volume": 0.20819799602031708}]}]}));
/* ***Straws*** */ results.push(makeModel({"name": "Straws", "kind": "objects", "forms": [{"name": "Normal", "views": [{"name": "Front", "height": 0.2159000039100647}, {"name": "Top", "height": 0.006095999851822853}]}, {"name": "Wide", "views": [{"name": "Front", "height": 0.2159000039100647}, {"name": "Top", "height": 0.008127997629344463}]}, {"name": "Smoothie", "views": [{"name": "Front", "height": 0.2159000039100647}, {"name": "Top", "height": 0.00914399977773428}]}, {"name": "Boba", "views": [{"name": "Front", "height": 0.2159000039100647}, {"name": "Top", "height": 0.012191999703645706}]}]}));
/* ***INSERT HERE*** */
return results;
}

+ 10
- 9
scripts/blender-model.py 查看文件

@@ -9,6 +9,7 @@ VIEW_DATA = {
"Front": [0, 1, 2, "Front"],
"Angled": [0.5, 1, 2, "Angled"],
"Side": [1, 1, 2, "Side"],
"Back Angled": [1.5, 1, 2, "Back Angled"],
"Back": [2, 1, 2, "Back"],
"Top": [0, 0, 1, "Top"],
"Bottom": [0, 2, 1, "Bottom"]
@@ -43,8 +44,8 @@ parent_workdir = config["work-directory"]
c = bpy.data.objects["cam"]
c.data.type = "ORTHO"

bpy.data.scenes["Scene"].render.resolution_x = 1000
bpy.data.scenes["Scene"].render.resolution_y = 1000
bpy.data.scenes["Scene"].render.resolution_x = 2000
bpy.data.scenes["Scene"].render.resolution_y = 2000
bpy.data.scenes["Scene"].render.film_transparent = True
bpy.data.scenes["Scene"].view_settings.view_transform = "Raw"

@@ -99,16 +100,16 @@ for coll in collections:

for angles in view_list:
c.location = global_bbox_center
largest = size
c.data.ortho_scale = largest * 1.2
if angles[0] % 1 != 0:
c.data.ortho_scale *= sqrt(2)
c.rotation_euler = Euler([angles[1] * pi / 2, 0, angles[0] * pi / 2])
print(list(bound_min) + list(bound_max))
_, c.data.ortho_scale = c.camera_fit_coords(bpy.context.evaluated_depsgraph_get(), list(bound_min) + list(bound_max))
c.location = Vector([c.location[0], c.location[1], c.location[2]])
c.data.ortho_scale *= 1.2
rot = c.rotation_euler.to_matrix()
rot.invert()
c.location = c.location + Vector([0, 0, largest * 2]) @ rot
c.data.clip_start = largest / 4
c.data.clip_end = largest * 4
c.location += Vector([0, 0, size * 2]) @ rot
c.data.clip_start = size / 4
c.data.clip_end = size * 8
data["views"].append({
"name": angles[3],
"height": dimensions[angles[2]]


正在加载...
取消
保存