Commit da6c1f8a authored by amandaghassaei's avatar amandaghassaei
Browse files

better triangulation of quads

parent ab2adea5
......@@ -2,28 +2,28 @@
<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1"
id="svg2" inkscape:version="0.48.1 " sodipodi:docname="Miura-Ori CP.svg" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:svg="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
id="svg2" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:svg="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" sodipodi:docname="Miura-Ori CP.svg" inkscape:version="0.48.1 "
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="1291.438px"
height="1186px" viewBox="0 -335.245 1291.438 1186" enable-background="new 0 -335.245 1291.438 1186" xml:space="preserve">
<sodipodi:namedview inkscape:window-maximized="1" inkscape:current-layer="svg2" inkscape:window-x="-8" inkscape:pageshadow="2" inkscape:window-height="1058" inkscape:document-units="px" inkscape:pageopacity="0.0" inkscape:window-y="-8" inkscape:guide-bbox="true" fit-margin-right="0" inkscape:window-width="1920" fit-margin-bottom="0" showgrid="false" fit-margin-top="0" fit-margin-left="0" pagecolor="#ffffff" borderopacity="1.0" showguides="true" bordercolor="#666666" id="base" inkscape:cy="198.09671" inkscape:cx="546.13303" inkscape:zoom="1.1156267">
height="1186px" viewBox="0 0 1291.438 1186" enable-background="new 0 0 1291.438 1186" xml:space="preserve">
<sodipodi:namedview inkscape:zoom="1.1156267" inkscape:cx="546.13303" inkscape:cy="198.09671" id="base" bordercolor="#666666" showguides="true" borderopacity="1.0" pagecolor="#ffffff" fit-margin-left="0" fit-margin-top="0" showgrid="false" inkscape:window-width="1920" fit-margin-right="0" inkscape:document-units="px" inkscape:window-height="1058" inkscape:pageshadow="2" inkscape:window-x="-8" inkscape:guide-bbox="true" inkscape:current-layer="svg2" inkscape:window-maximized="1" inkscape:pageopacity="0.0" inkscape:window-y="-8" fit-margin-bottom="0">
</sodipodi:namedview>
<path fill="#FF0000" stroke="#FF0000" stroke-width="4" d="M320.719,882.645l10-92 M330.719,790.645l-10-92 M320.719,698.644l10-92
M330.719,606.644l-10-92 M320.719,514.644l10-92 M480.719,882.645l10-92 M490.719,790.645l-10-92 M480.719,698.644l10-92
M490.719,606.644l-10-92 M480.719,514.644l10-92 M170.719,790.645h80 M330.719,790.645h80 M170.719,606.644h80 M330.719,606.644h80
M240.719,698.644h80 M400.719,698.644h80 M240.719,514.644h80 M400.719,514.644h80 M640.719,882.645l10-92 M650.719,790.645l-10-92
M640.719,698.643l10-91.999 M650.719,606.644l-10-92 M640.719,514.644l10-92 M800.719,882.645l10-92 M810.719,790.645l-10-92
M800.719,698.643l10-91.999 M810.719,606.644l-10-92 M800.719,514.644l10-92 M490.719,790.645h80 M650.719,790.645h80
M490.719,606.644h80 M650.719,606.644h80 M560.719,698.643h80 M720.719,698.643h80 M560.719,514.644h80 M720.719,514.644h80
M960.719,882.645l10-92 M970.719,790.645l-10-92 M960.719,698.643l10-91.999 M970.719,606.644l-10-92 M960.719,514.644l10-92
M810.719,790.645h80 M970.719,790.645h80 M810.719,606.644h80 M970.719,606.644h80 M880.719,698.643h80 M1040.719,698.643h80
M880.719,514.644h80 M1040.719,514.644h80 M330.719,422.644l-10-92 M320.719,330.643l10-92 M330.719,238.643l-10-92
M320.719,146.643l10-92 M490.719,422.644l-10-92 M480.719,330.643l10-92 M490.719,238.643l-10-92 M480.719,146.643l10-92
M170.719,422.644h80 M330.719,422.644h80 M170.719,238.643h80 M330.719,238.643h80 M240.719,330.643h80 M400.719,330.643h80
M240.719,146.643h80 M400.719,146.643h80 M650.719,422.644l-10-92 M640.719,330.642l10-92 M650.719,238.642l-10-92
M640.719,146.642l10-92 M810.719,422.644l-10-92 M800.719,330.642l10-92 M810.719,238.642l-10-92 M800.719,146.642l10-92
M490.719,422.644h80 M650.719,422.644h80 M490.719,238.642h80 M650.719,238.642h80 M560.719,330.642h80 M720.719,330.642h80
M560.719,146.642h80 M720.719,146.642h80 M970.719,422.644l-10-92 M960.719,330.642l10-92 M970.719,238.642l-10-92
M960.719,146.642l10-92 M810.719,422.644h80 M970.719,422.644h80 M810.719,238.642h80 M970.719,238.642h80 M880.719,330.642h80
<path fill="#FF0000" stroke="#FF0000" stroke-width="4" d="M320.719,882.645l10-92 M330.719,790.645l-10-92 M320.719,698.645l10-92
M330.719,606.645l-10-92 M320.719,514.645l10-92 M480.719,882.645l10-92 M490.719,790.645l-10-92 M480.719,698.645l10-92
M490.719,606.645l-10-92 M480.719,514.645l10-92 M170.719,790.645h80 M330.719,790.645h80 M170.719,606.645h80 M330.719,606.645h80
M240.719,698.645h80 M400.719,698.645h80 M240.719,514.645h80 M400.719,514.645h80 M640.719,882.645l10-92 M650.719,790.645l-10-92
M640.719,698.643l10-91.998 M650.719,606.645l-10-92 M640.719,514.645l10-92 M800.719,882.645l10-92 M810.719,790.645l-10-92
M800.719,698.643l10-91.998 M810.719,606.645l-10-92 M800.719,514.645l10-92 M490.719,790.645h80 M650.719,790.645h80
M490.719,606.645h80 M650.719,606.645h80 M560.719,698.643h80 M720.719,698.643h80 M560.719,514.645h80 M720.719,514.645h80
M960.719,882.645l10-92 M970.719,790.645l-10-92 M960.719,698.643l10-91.998 M970.719,606.645l-10-92 M960.719,514.645l10-92
M810.719,790.645h80 M970.719,790.645h80 M810.719,606.645h80 M970.719,606.645h80 M880.719,698.643h80 M1040.719,698.643h80
M880.719,514.645h80 M1040.719,514.645h80 M330.719,422.645l-10-92 M320.719,330.643l10-92 M330.719,238.643l-10-92
M320.719,146.643l10-92 M490.719,422.645l-10-92 M480.719,330.643l10-92 M490.719,238.643l-10-92 M480.719,146.643l10-92
M170.719,422.645h80 M330.719,422.645h80 M170.719,238.643h80 M330.719,238.643h80 M240.719,330.643h80 M400.719,330.643h80
M240.719,146.643h80 M400.719,146.643h80 M650.719,422.645l-10-92 M640.719,330.642l10-92 M650.719,238.642l-10-92
M640.719,146.642l10-92 M810.719,422.645l-10-92 M800.719,330.642l10-92 M810.719,238.642l-10-92 M800.719,146.642l10-92
M490.719,422.645h80 M650.719,422.645h80 M490.719,238.642h80 M650.719,238.642h80 M560.719,330.642h80 M720.719,330.642h80
M560.719,146.642h80 M720.719,146.642h80 M970.719,422.645l-10-92 M960.719,330.642l10-92 M970.719,238.642l-10-92
M960.719,146.642l10-92 M810.719,422.645h80 M970.719,422.645h80 M810.719,238.642h80 M970.719,238.642h80 M880.719,330.642h80
M1040.719,330.642h80 M880.719,146.642h80 M1040.719,146.642h80 M330.719,54.643l-10-92 M320.719-37.358l10-92 M330.719-129.358
l-10-92 M320.719-221.358l10-92 M490.719,54.643l-10-92 M480.719-37.358l10-92 M490.719-129.358l-10-92 M480.719-221.358l10-92
M170.719,54.643h80 M330.719,54.643h80 M170.719-129.358h80 M330.719-129.358h80 M240.719-37.358h80 M400.719-37.358h80
......@@ -33,25 +33,25 @@
M720.719-221.359h80 M970.719,54.643l-10-92 M960.719-37.359l10-92 M970.719-129.359l-10-92 M960.719-221.359l10-92
M810.719,54.643h80 M970.719,54.643h80 M810.719-129.359h80 M970.719-129.359h80 M880.719-37.359h80 M1040.719-37.359h80
M880.719-221.359h80 M1040.719-221.359h80"/>
<path fill="#000080" stroke="#0000FF" stroke-width="3" d="M240.719,882.645l10-92 M250.719,790.645l-10-92 M240.719,698.644l10-92
M250.719,606.644l-10-92 M240.719,514.644l10-92 M400.719,882.645l10-92 M410.719,790.645l-10-92 M400.719,698.644l10-92
M410.719,606.644l-10-92 M400.719,514.644l10-92 M250.719,790.645h80 M410.719,790.645h80 M250.719,606.644h80 M410.719,606.644h80
M160.719,698.644h80 M320.719,698.644h80 M160.719,514.644h80 M320.719,514.644h80 M560.719,882.645l10-92 M570.719,790.645l-10-92
M560.719,698.643l10-91.999 M570.719,606.644l-10-92 M560.719,514.644l10-92 M720.719,882.645l10-92 M730.719,790.645l-10-92
M720.719,698.643l10-91.999 M730.719,606.644l-10-92 M720.719,514.644l10-92 M570.719,790.645h80 M730.719,790.645h80
M570.719,606.644h80 M730.719,606.644h80 M480.719,698.643h80 M640.719,698.643h80 M480.719,514.644h80 M640.719,514.644h80
M880.719,882.645l10-92 M890.719,790.645l-10-92 M880.719,698.643l10-91.999 M890.719,606.644l-10-92 M880.719,514.644l10-92
M1040.719,882.645l10-92 M1050.719,790.645l-10-92 M1040.719,698.643l10-91.999 M1050.719,606.644l-10-92 M1040.719,514.644l10-92
M890.719,790.645h80 M1050.719,790.645h80 M890.719,606.644h80 M1050.719,606.644h80 M800.719,698.643h80 M960.719,698.643h80
M800.719,514.644h80 M960.719,514.644h80 M250.719,422.644l-10-92 M240.719,330.643l10-92 M250.719,238.643l-10-92
M240.719,146.643l10-92 M410.719,422.644l-10-92 M400.719,330.643l10-92 M410.719,238.643l-10-92 M400.719,146.643l10-92
M250.719,422.644h80 M410.719,422.644h80 M250.719,238.643h80 M410.719,238.643h80 M160.719,330.643h80 M320.719,330.643h80
M160.719,146.643h80 M320.719,146.643h80 M570.719,422.644l-10-92 M560.719,330.642l10-92 M570.719,238.642l-10-92
M560.719,146.642l10-92 M730.719,422.644l-10-92 M720.719,330.642l10-92 M730.719,238.642l-10-92 M720.719,146.642l10-92
M570.719,422.644h80 M730.719,422.644h80 M570.719,238.642h80 M730.719,238.642h80 M480.719,330.642h80 M640.719,330.642h80
M480.719,146.642h80 M640.719,146.642h80 M890.719,422.644l-10-92 M880.719,330.642l10-92 M890.719,238.642l-10-92
M880.719,146.642l10-92 M1050.719,422.644l-10-92 M1040.719,330.642l10-92 M1050.719,238.642l-10-92 M1040.719,146.642l10-92
M890.719,422.644h80 M1050.719,422.644h80 M890.719,238.642h80 M1050.719,238.642h80 M800.719,330.642h80 M960.719,330.642h80
<path fill="#000080" stroke="#0000FF" stroke-width="3" d="M240.719,882.645l10-92 M250.719,790.645l-10-92 M240.719,698.645l10-92
M250.719,606.645l-10-92 M240.719,514.645l10-92 M400.719,882.645l10-92 M410.719,790.645l-10-92 M400.719,698.645l10-92
M410.719,606.645l-10-92 M400.719,514.645l10-92 M250.719,790.645h80 M410.719,790.645h80 M250.719,606.645h80 M410.719,606.645h80
M160.719,698.645h80 M320.719,698.645h80 M160.719,514.645h80 M320.719,514.645h80 M560.719,882.645l10-92 M570.719,790.645l-10-92
M560.719,698.643l10-91.998 M570.719,606.645l-10-92 M560.719,514.645l10-92 M720.719,882.645l10-92 M730.719,790.645l-10-92
M720.719,698.643l10-91.998 M730.719,606.645l-10-92 M720.719,514.645l10-92 M570.719,790.645h80 M730.719,790.645h80
M570.719,606.645h80 M730.719,606.645h80 M480.719,698.643h80 M640.719,698.643h80 M480.719,514.645h80 M640.719,514.645h80
M880.719,882.645l10-92 M890.719,790.645l-10-92 M880.719,698.643l10-91.998 M890.719,606.645l-10-92 M880.719,514.645l10-92
M1040.719,882.645l10-92 M1050.719,790.645l-10-92 M1040.719,698.643l10-91.998 M1050.719,606.645l-10-92 M1040.719,514.645l10-92
M890.719,790.645h80 M1050.719,790.645h80 M890.719,606.645h80 M1050.719,606.645h80 M800.719,698.643h80 M960.719,698.643h80
M800.719,514.645h80 M960.719,514.645h80 M250.719,422.645l-10-92 M240.719,330.643l10-92 M250.719,238.643l-10-92
M240.719,146.643l10-92 M410.719,422.645l-10-92 M400.719,330.643l10-92 M410.719,238.643l-10-92 M400.719,146.643l10-92
M250.719,422.645h80 M410.719,422.645h80 M250.719,238.643h80 M410.719,238.643h80 M160.719,330.643h80 M320.719,330.643h80
M160.719,146.643h80 M320.719,146.643h80 M570.719,422.645l-10-92 M560.719,330.642l10-92 M570.719,238.642l-10-92
M560.719,146.642l10-92 M730.719,422.645l-10-92 M720.719,330.642l10-92 M730.719,238.642l-10-92 M720.719,146.642l10-92
M570.719,422.645h80 M730.719,422.645h80 M570.719,238.642h80 M730.719,238.642h80 M480.719,330.642h80 M640.719,330.642h80
M480.719,146.642h80 M640.719,146.642h80 M890.719,422.645l-10-92 M880.719,330.642l10-92 M890.719,238.642l-10-92
M880.719,146.642l10-92 M1050.719,422.645l-10-92 M1040.719,330.642l10-92 M1050.719,238.642l-10-92 M1040.719,146.642l10-92
M890.719,422.645h80 M1050.719,422.645h80 M890.719,238.642h80 M1050.719,238.642h80 M800.719,330.642h80 M960.719,330.642h80
M800.719,146.642h80 M960.719,146.642h80 M250.719,54.643l-10-92 M240.719-37.358l10-92 M250.719-129.358l-10-92 M240.719-221.358
l10-92 M410.719,54.643l-10-92 M400.719-37.358l10-92 M410.719-129.358l-10-92 M400.719-221.358l10-92 M250.719,54.643h80
M410.719,54.643h80 M250.719-129.358h80 M410.719-129.358h80 M160.719-37.358h80 M320.719-37.358h80 M160.719-221.358h80
......@@ -61,42 +61,10 @@
M890.719,54.643l-10-92 M880.719-37.359l10-92 M890.719-129.359l-10-92 M880.719-221.359l10-92 M1050.719,54.643l-10-92
M1040.719-37.359l10-92 M1050.719-129.359l-10-92 M1040.719-221.359l10-92 M890.719,54.643h80 M1050.719,54.643h80
M890.719-129.359h80 M1050.719-129.359h80 M800.719-37.359h80 M960.719-37.359h80 M800.719-221.359h80 M960.719-221.359h80"/>
<path fill="none" stroke="#FFFF00" stroke-width="4" d="M160.719,882.645l90-92 M250.719,790.645l70,92 M320.719,882.645l90-92
M410.719,790.645l70,92 M170.719,790.645l70-92.001 M240.719,698.644l90,92.001 M330.719,790.645l70-92.001 M490.719,790.645
l-90-92.001 M160.719,698.644l90-92 M250.719,606.644l70,92 M320.719,698.644l90-92 M410.719,606.644l70,92 M170.719,606.644l70-92
M240.719,514.644l90,92 M330.719,606.644l70-92 M400.719,514.644l90,92 M160.719,514.644l90-92 M250.719,422.644l70,92
M320.719,514.644l90-92 M410.719,422.644l70,92 M480.719,882.645l90-92 M570.719,790.645l70,92 M640.719,882.645l90-92
M730.719,790.645l70,92 M490.719,790.645l70-92.002 M560.719,698.643l90,92.002 M650.719,790.645l70-92.002 M810.719,790.645
l-90-92.002 M480.719,698.643l90-91.999 M570.719,606.644l70,91.999 M640.719,698.643l90-91.999 M730.719,606.644l70,91.999
M490.719,606.644l70-92 M560.719,514.644l90,92 M650.719,606.644l70-92 M720.719,514.644l90,92 M480.719,514.644l90-92
M570.719,422.644l70,92 M640.719,514.644l90-92 M730.719,422.644l70,92 M800.719,882.645l90-92 M890.719,790.645l70,92
M960.719,882.645l90-92 M1050.719,790.645l70,92 M810.719,790.645l70-92.002 M880.719,698.643l90,92.002 M970.719,790.645
l70-92.002 M1130.719,790.645l-90-92.002 M800.719,698.643l90-91.999 M890.719,606.644l70,91.999 M960.719,698.643l90-91.999
M1050.719,606.644l70,91.999 M810.719,606.644l70-92 M880.719,514.644l90,92 M970.719,606.644l70-92 M1040.719,514.644l90,92
M800.719,514.644l90-92 M890.719,422.644l70,92 M960.719,514.644l90-92 M1050.719,422.644l70,92 M170.719,422.644l70-92.001
M240.719,330.643l90,92.001 M330.719,422.644l70-92.001 M490.719,422.644l-90-92.001 M160.719,330.643l90-92 M250.719,238.643
l70,92 M320.719,330.643l90-92 M410.719,238.643l70,92 M170.719,238.643l70-92 M240.719,146.643l90,92 M330.719,238.643l70-92
M400.719,146.643l90,92 M160.719,146.643l90-92 M250.719,54.643l70,92 M320.719,146.643l90-92 M410.719,54.643l70,92
M490.719,422.644l70-92.002 M560.719,330.642l90,92.002 M650.719,422.644l70-92.002 M810.719,422.644l-90-92.002 M480.719,330.642
l90-92 M570.719,238.642l70,92 M640.719,330.642l90-92 M730.719,238.642l70,92 M490.719,238.642l70-92 M560.719,146.642l90,92
M650.719,238.642l70-92 M720.719,146.642l90,92 M480.719,146.642l90-92 M570.719,54.642l70,92 M640.719,146.642l90-92
M730.719,54.642l70,92 M810.719,422.644l70-92.002 M880.719,330.642l90,92.002 M970.719,422.644l70-92.002 M1130.719,422.644
l-90-92.002 M800.719,330.642l90-92 M890.719,238.642l70,92 M960.719,330.642l90-92 M1050.719,238.642l70,92 M810.719,238.642l70-92
M880.719,146.642l90,92 M970.719,238.642l70-92 M1040.719,146.642l90,92 M800.719,146.642l90-92 M890.719,54.642l70,92
M960.719,146.642l90-92 M1050.719,54.642l70,92 M170.719,54.643l70-92.001 M240.719-37.358l90,92.001 M330.719,54.643l70-92.001
M490.719,54.643l-90-92.001 M160.719-37.358l90-92 M250.719-129.358l70,92 M320.719-37.358l90-92 M410.719-129.358l70,92
M170.719-129.358l70-92 M240.719-221.358l90,92 M330.719-129.358l70-92 M400.719-221.358l90,92 M160.719-221.358l90-92
M250.719-313.358l70,92 M320.719-221.358l90-92 M410.719-313.358l70,92 M490.719,54.643l70-92.002 M560.719-37.359l90,92.002
M650.719,54.643l70-92.002 M810.719,54.643l-90-92.002 M480.719-37.359l90-92 M570.719-129.359l70,92 M640.719-37.359l90-92
M730.719-129.359l70,92 M490.719-129.359l70-92 M560.719-221.359l90,92 M650.719-129.359l70-92 M720.719-221.359l90,92
M480.719-221.359l90-92 M570.719-313.359l70,92 M640.719-221.359l90-92 M730.719-313.359l70,92 M810.719,54.643l70-92.002
M880.719-37.359l90,92.002 M970.719,54.643l70-92.002 M1130.719,54.643l-90-92.002 M800.719-37.359l90-92 M890.719-129.359l70,92
M960.719-37.359l90-92 M1050.719-129.359l70,92 M810.719-129.359l70-92 M880.719-221.359l90,92 M970.719-129.359l70-92
M1040.719-221.359l90,92 M800.719-221.359l90-92 M890.719-313.359l70,92 M960.719-221.359l90-92 M1050.719-313.359l70,92"/>
<path fill="#FF0000" stroke="#000000" stroke-width="4" d="M1120.719,882.645l10-92 M1130.719,790.645l-10-92 M1120.719,698.643
l10-91.999 M1130.719,606.644l-10-92 M1120.719,514.644l10-92 M160.719,882.645l10-92 M170.719,790.645l-10-92 M160.719,698.643
l10-92 M170.719,606.643l-10-92 M160.719,514.643l10-92 M1130.719,422.644l-10-92 M1120.719,330.642l10-92 M1130.719,238.642l-10-92
M1120.719,146.642l10-92 M170.719,422.644l-10-92 M160.719,330.642l10-92 M170.719,238.642l-10-92 M160.719,146.642l10-92
l10-91.998 M1130.719,606.645l-10-92 M1120.719,514.645l10-92 M160.719,882.645l10-92 M170.719,790.645l-10-92 M160.719,698.643
l10-92 M170.719,606.643l-10-92 M160.719,514.643l10-92 M1130.719,422.645l-10-92 M1120.719,330.642l10-92 M1130.719,238.642l-10-92
M1120.719,146.642l10-92 M170.719,422.645l-10-92 M160.719,330.642l10-92 M170.719,238.642l-10-92 M160.719,146.642l10-92
M1130.719,54.643l-10-92 M1120.719-37.359l10-92 M1130.719-129.359l-10-92 M1120.719-221.359l10-92 M170.719,54.643l-10-92
M160.719-37.359l10-92 M170.719-129.359l-10-92 M160.719-221.359l10-92 M170.719-313.359h960 M160.719,882.645h960"/>
</svg>
......@@ -4,19 +4,16 @@
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="400px" height="400px" viewBox="0 0 400 400" enable-background="new 0 0 400 400" xml:space="preserve">
<rect fill="#FFFFFF" width="400" height="400"/>
<path fill="none" stroke="#0000FF" stroke-linecap="round" stroke-miterlimit="10" d="M150.82,88.47l36,62.35 M213.18,249.18
l36,62.351 M249.18,186.82l62.351-36 M150.82,213.18l-62.35,36 M186.82,150.82l62.36,36 M186.82,150.82l-36,62.36 M213.18,249.18
l36-62.36 M213.18,249.18l-62.36-36"/>
<path fill="none" stroke="#000000" stroke-linecap="round" stroke-miterlimit="10" d="M124.47,186.82l-36-62.35 M124.47,186.82
l-36,62.36 M88.47,249.18l36,62.351 M150.82,88.47l-62.35,36 M150.82,88.47l62.36,36 M213.18,124.47l62.351-36 M275.53,88.47
l36,62.35 M311.53,150.82l-36,62.36 M275.53,213.18l36,62.351 M311.53,275.53l-62.351,36 M249.18,311.53l-62.36-36 M186.82,275.53
l-62.35,36"/>
<path fill="none" stroke="#FF0000" stroke-linecap="round" stroke-miterlimit="10" d="M186.82,150.82l-62.35,36"/>
<path fill="none" stroke="#FF0000" stroke-linecap="round" stroke-miterlimit="10" d="M213.18,249.18l62.351-36"/>
<path fill="none" stroke="#FF0000" stroke-linecap="round" stroke-miterlimit="10" d="M213.18,124.47l36,62.35"/>
<path fill="none" stroke="#FF0000" stroke-linecap="round" stroke-miterlimit="10" d="M150.82,213.18l36,62.351"/>
<path fill="none" stroke="#0000FF" stroke-linecap="round" stroke-miterlimit="10" d="M150.82,88.47l36,62.351 M213.18,249.18
l36,62.352 M249.18,186.82l62.352-36 M150.82,213.18l-62.351,36 M186.82,150.82l62.359,36 M186.82,150.82l-36,62.359 M213.18,249.18
l36-62.359 M213.18,249.18l-62.36-36"/>
<path fill="none" stroke="#000000" stroke-linecap="round" stroke-miterlimit="10" d="M124.47,186.82l-36-62.351 M124.47,186.82
l-36,62.359 M88.47,249.18l36,62.352 M150.82,88.47l-62.351,36 M150.82,88.47l62.359,36 M213.18,124.47l62.352-36 M275.53,88.47
l36,62.351 M311.53,150.82l-36,62.359 M275.53,213.18l36,62.352 M311.53,275.53l-62.352,36 M249.18,311.53l-62.36-36 M186.82,275.53
l-62.351,36"/>
<path fill="none" stroke="#FF0000" stroke-linecap="round" stroke-miterlimit="10" d="M186.82,150.82l-62.351,36"/>
<path fill="none" stroke="#FF0000" stroke-linecap="round" stroke-miterlimit="10" d="M213.18,249.18l62.352-36"/>
<path fill="none" stroke="#FF0000" stroke-linecap="round" stroke-miterlimit="10" d="M213.18,124.47l36,62.351"/>
<path fill="none" stroke="#FF0000" stroke-linecap="round" stroke-miterlimit="10" d="M150.82,213.18l36,62.352"/>
<rect fill="none" width="400" height="400"/>
<path fill="none" stroke="#FFFF00" stroke-miterlimit="10" d="M124.47,186.82l26.35-98.35 M213.18,124.47l98.351,26.35
M275.53,213.18L249.18,311.53 M186.82,275.53L88.47,249.18 M124.47,186.82l26.35,26.36 M213.18,249.18l-26.36,26.351
M275.53,213.18l-26.351-26.36 M186.82,150.82l26.36-26.35 M186.82,150.82l26.36,98.36"/>
</svg>
......@@ -9,79 +9,60 @@
L211,141.46 M211,141.46L229.64,211 M229.64,211l-69.55,18.64 M160.09,229.64L90.54,211 M90.54,211L21,229.64"/>
<path fill="none" stroke="#000000" stroke-linecap="round" stroke-miterlimit="10" d="M235.2,23.1L256.1,92 M256.1,92l-20.9,68.9
M235.2,160.9l20.9,68.9 M304.1,2.2l-68.9,20.9 M304.1,2.2L373,23.1 M373,23.1l68.9-20.9 M462.8,71.1L441.9,2.2 M462.8,71.1
L441.9,140 M462.8,208.9L441.9,140 M393.9,229.8l68.899-20.9 M325,208.9l68.9,20.9 M325,208.9l-68.9,20.9"/>
L441.9,140 M462.8,208.9L441.9,140 M393.9,229.8l68.898-20.9 M325,208.9l68.9,20.9 M325,208.9l-68.9,20.9"/>
<path fill="none" stroke="#000000" stroke-linecap="round" stroke-miterlimit="10" d="M491.3,93.48L468.16,25.3 M468.16,161.66
l23.14-68.18 M491.3,229.84l-23.14-68.18 M536.34,2.16L468.16,25.3 M604.52,25.3L536.34,2.16 M604.52,25.3L672.7,2.16 M672.7,2.16
l23.14,68.18 M695.84,70.34l-23.14,68.18 M672.7,138.52l23.14,68.18 M627.66,229.84l68.18-23.14 M627.66,229.84l-68.18-23.14
M491.3,229.84l68.181-23.14"/>
<path fill="none" stroke="#000000" stroke-linecap="round" stroke-miterlimit="10" d="M2.24,260.6l25.36,67.39 M27.6,327.99
L2.24,395.37 M2.24,395.37l25.36,67.39 M69.63,235.24L2.24,260.6 M137.01,260.6l-67.38-25.36 M137.01,260.6l67.39-25.36
M204.4,235.24l25.36,67.39 M229.76,302.63l-25.36,67.38 M229.76,437.4L204.4,370.01 M229.76,437.4l-67.39,25.359 M94.99,437.4
l67.38,25.359 M27.6,462.76L94.99,437.4"/>
M204.4,235.24l25.36,67.39 M229.76,302.63l-25.36,67.38 M229.76,437.4L204.4,370.01 M229.76,437.4l-67.39,25.358 M94.99,437.4
l67.38,25.358 M27.6,462.76L94.99,437.4"/>
<path fill="none" stroke="#000000" stroke-linecap="round" stroke-miterlimit="10" d="M263,329.52L235.44,263 M263,329.52
l-27.56,66.52 M235.44,396.04L263,462.56 M301.96,235.44L235.44,263 M301.96,235.44L368.48,263 M368.48,263L435,235.44 M435,235.44
l27.56,66.52 M462.56,301.96L435,368.48 M435,368.48L462.56,435 M462.56,435l-66.52,27.56 M396.04,462.56L329.52,435 M329.52,435
L263,462.56"/>
l-27.56,66.52 M235.44,396.04L263,462.561 M301.96,235.44L235.44,263 M301.96,235.44L368.48,263 M368.48,263L435,235.44 M435,235.44
l27.561,66.52 M462.561,301.96L435,368.48 M435,368.48L462.561,435 M462.561,435l-66.521,27.561 M396.04,462.561L329.52,435
M329.52,435L263,462.561"/>
<path fill="none" stroke="#000000" stroke-linecap="round" stroke-miterlimit="10" d="M468.77,265.48l29.711,65.59 M498.48,331.07
L468.77,396.65 M468.77,396.65l29.711,65.58 M534.35,235.77l-65.58,29.71 M534.35,235.77l65.58,29.71 M599.93,265.48l65.59-29.71
l-29.711,65.58 M468.77,396.65l29.711,65.58 M534.35,235.77l-65.58,29.71 M534.35,235.77l65.58,29.71 M599.93,265.48l65.59-29.71
M665.52,235.77l29.711,65.58 M695.23,301.35l-29.711,65.58 M665.52,366.93l29.711,65.59 M695.23,432.52l-65.58,29.711
M629.65,462.23l-65.58-29.711 M564.07,432.52l-65.59,29.711"/>
<path fill="none" stroke="#000000" stroke-linecap="round" stroke-miterlimit="10" d="M3.22,501.06l31.84,64.57 M35.06,565.63
L3.22,630.21 M3.22,630.21l31.84,64.57 M3.22,501.06l64.57-31.84 M67.79,469.22l64.58,31.84 M196.94,469.22l-64.57,31.84
M196.94,469.22l31.84,64.57 M228.78,533.79l-31.84,64.58 M196.94,598.37l31.84,64.57 M228.78,662.94l-64.57,31.84 M99.63,662.94
l64.58,31.84 M99.63,662.94l-64.57,31.84"/>
<path fill="none" stroke="#000000" stroke-linecap="round" stroke-miterlimit="10" d="M236.78,503.72l33.94,63.5 M270.72,567.22
l-33.94,63.5 M270.72,694.22l-33.94-63.5 M236.78,503.72l63.5-33.939 M300.28,469.78l63.5,33.939 M363.78,503.72l63.5-33.939
M461.22,533.28l-33.939-63.5 M461.22,533.28l-33.939,63.5 M461.22,660.28l-33.939-63.5 M397.72,694.22l63.5-33.939 M334.22,660.28
l63.5,33.939 M334.22,660.28l-63.5,33.939"/>
<path fill="none" stroke="#000000" stroke-linecap="round" stroke-miterlimit="10" d="M3.22,501.061l31.84,64.569 M35.06,565.63
L3.22,630.21 M3.22,630.21l31.84,64.57 M3.22,501.061l64.57-31.841 M67.79,469.22l64.58,31.841 M196.94,469.22l-64.57,31.841
M196.94,469.22l31.84,64.57 M228.78,533.79l-31.84,64.58 M196.94,598.37l31.84,64.569 M228.78,662.939l-64.57,31.841
M99.63,662.939l64.58,31.841 M99.63,662.939L35.06,694.78"/>
<path fill="none" stroke="#000000" stroke-linecap="round" stroke-miterlimit="10" d="M236.78,503.72l33.939,63.5 M270.72,567.22
l-33.939,63.5 M270.72,694.22l-33.939-63.5 M236.78,503.72l63.5-33.938 M300.28,469.78l63.5,33.938 M363.78,503.72l63.5-33.938
M461.22,533.28l-33.938-63.5 M461.22,533.28l-33.938,63.5 M461.22,660.28l-33.938-63.5 M397.72,694.22l63.5-33.938 M334.22,660.28
l63.5,33.938 M334.22,660.28l-63.5,33.938"/>
<path fill="none" stroke="#0000FF" stroke-linecap="round" stroke-miterlimit="10" d="M71.91,2.36l18.63,69.55 M141.46,160.09
l18.63,69.55 M160.09,90.54l69.55-18.63 M2.36,160.09l69.55-18.63 M160.09,90.54L90.54,71.91 M71.91,141.46l18.63-69.55
M160.09,90.54l-18.63,69.55 M71.91,141.46l69.55,18.63 M325,71.1L304.1,2.2 M373,160.9l20.9,68.9 M393.9,92L462.8,71.1 M304.1,140
l-68.9,20.9 M325,71.1L393.9,92 M325,71.1L304.1,140 M373,160.9L393.9,92 M373,160.9L304.1,140 M559.48,70.34L536.34,2.16
M604.52,161.66l23.141,68.18 M627.66,93.48l68.18-23.14 M536.34,138.52l-68.18,23.14 M559.48,70.34l68.18,23.14 M536.34,138.52
l23.141-68.18 M604.52,161.66l23.141-68.18 M604.52,161.66l-68.18-23.14 M94.99,302.63l-25.36-67.39 M137.01,395.37l25.36,67.39
M604.52,161.66l23.142,68.18 M627.66,93.48l68.18-23.14 M536.34,138.52l-68.18,23.14 M559.48,70.34l68.18,23.14 M536.34,138.52
l23.141-68.18 M604.52,161.66l23.142-68.18 M604.52,161.66l-68.18-23.14 M94.99,302.63l-25.36-67.39 M137.01,395.37l25.36,67.39
M229.76,302.63l-67.39,25.36 M69.63,370.01L2.24,395.37 M162.37,327.99l-67.38-25.36 M69.63,370.01l25.36-67.38 M137.01,395.37
l25.36-67.38 M69.63,370.01l67.38,25.36 M329.52,301.96l-27.56-66.52 M368.48,396.04l27.56,66.52 M396.04,329.52l66.52-27.56
M301.96,368.48l-66.52,27.56 M329.52,301.96l66.52,27.56 M329.52,301.96l-27.56,66.521 M368.48,396.04l27.56-66.52 M301.96,368.48
l66.521,27.56 M534.35,235.77l29.721,65.58 M599.93,396.65l29.721,65.58 M695.23,301.35l-65.58,29.72 M534.35,366.93l-65.58,29.721
M564.07,301.35l65.58,29.72 M564.07,301.35l-29.721,65.58 M599.93,396.65l29.721-65.581 M599.93,396.65l-65.58-29.721
M99.63,533.79l-31.84-64.57 M132.37,630.21l31.84,64.57 M164.21,565.64l64.57-31.85 M67.79,598.36L3.22,630.21 M99.63,533.79
l64.58,31.85 M99.63,533.79l-31.84,64.57 M132.37,630.21l31.84-64.57 M67.79,598.36l64.58,31.85 M300.28,469.78l33.94,63.5
M397.72,694.22l-33.939-63.5 M461.22,533.28l-63.5,33.939 M236.78,630.72l63.5-33.939 M397.72,567.22l-63.5-33.939 M334.22,533.28
l-33.94,63.5 M363.78,630.72l33.939-63.5 M363.78,630.72l-63.5-33.939 M532.82,470.47l36,62.351 M631.18,693.53l-36-62.351
M693.53,532.82l-62.351,36 M532.82,595.18l-62.351,36 M568.82,532.82l62.359,36 M568.82,532.82l-36,62.359 M595.18,631.18
l36-62.359 M595.18,631.18l-62.359-36"/>
<path fill="none" stroke="#000000" stroke-linecap="round" stroke-miterlimit="10" d="M470.47,506.47l36,62.351 M506.47,568.82
l-36,62.359 M470.47,631.18l36,62.351 M532.82,470.47l-62.351,36 M532.82,470.47l62.359,36 M595.18,506.47l62.351-36 M657.53,470.47
l36,62.351 M693.53,532.82l-36,62.359 M657.53,595.18l36,62.351 M693.53,657.53l-62.351,36 M631.18,693.53l-62.359-36
M568.82,657.53l-62.351,36"/>
l25.36-67.38 M69.63,370.01l67.38,25.36 M329.52,301.96l-27.56-66.52 M368.48,396.04l27.56,66.521 M396.04,329.52l66.521-27.56
M301.96,368.48l-66.52,27.56 M329.52,301.96l66.521,27.56 M329.52,301.96l-27.56,66.521 M368.48,396.04l27.56-66.52 M301.96,368.48
l66.521,27.56 M534.35,235.77l29.722,65.58 M599.93,396.65l29.721,65.58 M695.23,301.35l-65.58,29.72 M534.35,366.93l-65.58,29.721
M564.07,301.35l65.58,29.72 M564.07,301.35l-29.722,65.58 M599.93,396.65l29.721-65.581 M599.93,396.65l-65.58-29.722
M99.63,533.79l-31.84-64.57 M132.37,630.21l31.84,64.57 M164.21,565.641l64.57-31.851 M67.79,598.359L3.22,630.21 M99.63,533.79
l64.58,31.85 M99.63,533.79l-31.84,64.569 M132.37,630.21l31.84-64.569 M67.79,598.359l64.58,31.851 M300.28,469.78l33.939,63.5
M397.72,694.22l-33.938-63.5 M461.22,533.28l-63.5,33.938 M236.78,630.72l63.5-33.938 M397.72,567.22l-63.5-33.938 M334.22,533.28
l-33.939,63.5 M363.78,630.72l33.938-63.5 M363.78,630.72l-63.5-33.938 M532.82,470.47l36,62.352 M631.18,693.53l-36-62.352
M693.53,532.82l-62.352,36 M532.82,595.18l-62.352,36 M568.82,532.82l62.358,36 M568.82,532.82l-36,62.358 M595.18,631.18
l36-62.358 M595.18,631.18l-62.358-36"/>
<path fill="none" stroke="#000000" stroke-linecap="round" stroke-miterlimit="10" d="M470.47,506.47l36,62.352 M506.47,568.82
l-36,62.358 M470.47,631.18l36,62.352 M532.82,470.47l-62.352,36 M532.82,470.47l62.358,36 M595.18,506.47l62.352-36 M657.53,470.47
l36,62.352 M693.53,532.82l-36,62.358 M657.53,595.18l36,62.352 M693.53,657.53l-62.352,36 M631.18,693.53l-62.358-36
M568.82,657.53l-62.352,36"/>
<path fill="none" stroke="#FF0000" stroke-linecap="round" stroke-miterlimit="10" d="M90.54,71.91L21,90.54 M141.46,160.09
L211,141.46 M141.46,21l18.63,69.54 M71.91,141.46L90.54,211 M325,71.1L256.1,92 M373,160.9l68.9-20.9 M393.9,92L373,23.1
M304.1,140l20.9,68.9 M559.48,70.34L491.3,93.48 M604.52,161.66l68.181-23.14 M627.66,93.48L604.52,25.3 M536.34,138.52
M304.1,140l20.9,68.9 M559.48,70.34L491.3,93.48 M604.52,161.66l68.182-23.14 M627.66,93.48L604.52,25.3 M536.34,138.52
l23.141,68.18 M27.6,327.99l67.39-25.36 M137.01,395.37l67.39-25.36 M162.37,327.99l-25.36-67.39 M69.63,370.01L94.99,437.4
M329.52,301.96L263,329.52 M368.48,396.04L435,368.48 M396.04,329.52L368.48,263 M301.96,368.48L329.52,435 M564.07,301.35
l-65.59,29.72 M599.93,396.65l65.59-29.721 M629.65,331.07l-29.721-65.59 M534.35,366.93l29.721,65.59 M99.63,533.79l-64.57,31.84
M132.37,630.21l64.57-31.84 M164.21,565.64l-31.84-64.58 M67.79,598.36l31.84,64.58 M334.22,533.28l-63.5,33.939 M363.78,630.72
l63.5-33.939 M363.78,503.72l33.939,63.5 M300.28,596.78l33.94,63.5 M568.82,532.82l-62.351,36 M657.53,595.18l-62.351,36
M595.18,506.47l36,62.351 M568.82,657.53l-36-62.351"/>
l-65.59,29.72 M599.93,396.65l65.59-29.722 M629.65,331.07l-29.722-65.59 M534.35,366.93l29.722,65.59 M99.63,533.79l-64.57,31.84
M132.37,630.21l64.57-31.84 M164.21,565.641l-31.84-64.58 M67.79,598.359l31.84,64.58 M334.22,533.28l-63.5,33.938 M363.78,630.72
l63.5-33.938 M363.78,503.72l33.938,63.5 M300.28,596.78l33.939,63.5 M568.82,532.82l-62.352,36 M657.53,595.18l-62.352,36
M595.18,506.47l36,62.352 M568.82,657.53l-36-62.352"/>
<rect fill="none" width="700" height="700"/>
<path fill="none" stroke="#FFFF00" stroke-linecap="round" stroke-miterlimit="10" d="M3.22,630.21l96.41,32.73 M99.63,662.94
l32.74-32.73 M164.21,694.78l32.73-96.41 M196.94,598.37l-32.73-32.73 M228.78,533.79l-96.41-32.73 M132.37,501.06l-32.74,32.73
M67.79,469.22l-32.73,96.41 M67.79,598.36l-32.73-32.73 M67.79,598.36l96.42-32.721 M236.78,630.72l97.44,29.561 M334.22,660.28
l29.56-29.561 M397.72,694.22l29.561-97.439 M427.28,596.78L397.72,567.22 M461.22,533.28L363.78,503.72 M363.78,503.72
l-29.56,29.561 M270.72,567.22l29.56-97.439 M270.72,567.22l29.56,29.561 M300.28,596.78l97.44-29.561 M470.47,631.18l98.351,26.351
M568.82,657.53l26.359-26.351 M657.53,595.18L631.18,693.53 M657.53,595.18L631.18,568.82 M693.53,532.82L595.18,506.47
M595.18,506.47L568.82,532.82 M532.82,470.47L506.47,568.82 M506.47,568.82l26.351,26.359 M629.65,462.23l35.869-95.301
M665.52,366.93l-35.869-35.86 M695.23,301.35l-95.301-35.87 M599.93,265.48l-35.859,35.87 M534.35,235.77l-35.869,95.3
M498.48,331.07l35.869,35.86 M468.77,396.65l95.301,35.869 M564.07,432.52l35.859-35.869 M329.52,435l-94.08-38.96 M329.52,435
l38.96-38.96 M396.04,462.56L435,368.48 M396.04,329.52L435,368.48 M462.56,301.96L368.48,263 M368.48,263l-38.96,38.96
M301.96,235.44L263,329.52 M263,329.52l38.96,38.96 M162.37,462.76l42.03-92.75 M204.4,370.01l-42.03-42.02 M229.76,302.63
l-92.75-42.03 M137.01,260.6l-42.02,42.03 M69.63,235.24L27.6,327.99 M27.6,327.99l42.03,42.02 M2.24,395.37l92.75,42.03
M94.99,437.4l42.02-42.03 M162.37,327.99l-92.74,42.02 M301.96,368.48l94.08-38.96 M534.35,366.93l95.301-35.86 M532.82,595.18
l98.359-26.359 M468.16,161.66l91.32,45.04 M559.48,206.7l45.039-45.04 M627.66,229.84l45.04-91.32 M672.7,138.52l-45.04-45.04
M604.52,25.3l91.32,45.04 M604.52,25.3L559.48,70.34 M536.34,2.16L491.3,93.48 M491.3,93.48l45.04,45.04 M536.34,138.52
l91.32-45.04 M393.9,229.8l48-89.8 M441.9,140l-48-48 M462.8,71.1l-89.8-48 M373,23.1l-48,48 M304.1,2.2l-48,89.8 M256.1,92l48,48
M235.2,160.9l89.8,48 M325,208.9l48-48 M304.1,140l89.8-48 M160.09,229.64L211,141.46 M211,141.46l-50.91-50.92 M229.64,71.91
L141.46,21 M141.46,21L90.54,71.91 M71.91,2.36L21,90.54 M21,90.54l50.91,50.92 M2.36,160.09L90.54,211 M90.54,211l50.92-50.91
M71.91,141.46l88.18-50.92"/>
</svg>
This diff is collapsed.
......@@ -165,8 +165,9 @@
vec3 nominalDist = neighborOriginalPosition-originalPosition;
vec3 deltaP = neighborLastPosition-lastPosition+nominalDist;
deltaP -= normalize(deltaP)*beamMeta[2];
nodeError += length(deltaP)/length(nominalDist);
float deltaPLength = length(deltaP);
deltaP -= deltaP*(beamMeta[2]/deltaPLength);
nodeError += deltaPLength/length(nominalDist);
vec3 deltaV = neighborLastVelocity-lastVelocity;
vec3 _force = deltaP*beamMeta[0] + deltaV*beamMeta[1];
......
......@@ -284,23 +284,51 @@ function initPattern(globals){
var polygonEdges = polygonData[1];
var faces = [];
for (var i=0;i<polygons.length;i++){
var polygon = polygons[i];
if (polygon.length == 4){
faces.push([polygon[0], polygon[1], polygon[2]]);
continue;
}
//check for quad and solve manually
if (polygon.length == 5){
var polyVert1 = _vertices[polygon[0]];
var polyVert2 = _vertices[polygon[1]];
var polyVert3 = _vertices[polygon[2]];
var polyVert4 = _vertices[polygon[3]];
var dist1 = (polyVert1.clone().sub(polyVert3)).lengthSq();
var dist2 = (polyVert2.clone().sub(polyVert4)).lengthSq();
if (dist2<dist1) {
allEdges.push([polygon[1], polygon[3]]);
faces.push([polygon[0], polygon[1], polygon[3]]);
faces.push([polygon[1], polygon[2], polygon[3]]);
} else {
allEdges.push([polygon[0], polygon[2]]);
faces.push([polygon[0], polygon[1], polygon[2]]);
faces.push([polygon[0], polygon[2], polygon[3]]);
}
continue;
}
var polyVerts = [];
if (shouldRotateFace){
var vecA = _vertices[polygons[i][1]].clone().sub(_vertices[polygons[i][0]]);
var vecB = _vertices[polygons[i][polygons[i].length-2]].clone().sub(_vertices[polygons[i][0]]);
var translation = _vertices[polygons[i][0]];
var vecA = _vertices[polygon[1]].clone().sub(_vertices[polygon[0]]);
var vecB = _vertices[polygon[polygon.length-2]].clone().sub(_vertices[polygon[0]]);
var translation = _vertices[polygon[0]];
var normal = (vecA.cross(vecB)).normalize();
var axis = ((new THREE.Vector3(0,1,0)).cross(normal)).normalize();
var angle = -Math.acos((new THREE.Vector3(0,1,0)).dot(normal));
for (var j=1;j<polygons[i].length;j++){
var vertex = _vertices[polygons[i][j]];
for (var j=1;j<polygon.length;j++){
var vertex = _vertices[polygon[j]];
vertex = (vertex.clone().sub(translation)).applyAxisAngle(axis, angle);
polyVerts.push(vertex.x);
polyVerts.push(vertex.z);
}
} else {
for (var j=1;j<polygons[i].length;j++){
var vertex = _vertices[polygons[i][j]];
for (var j=1;j<polygon.length;j++){
var vertex = _vertices[polygon[j]];
polyVerts.push(vertex.x);
polyVerts.push(vertex.z);
}
......@@ -308,7 +336,7 @@ function initPattern(globals){
var triangles = earcut(polyVerts);
for (var j=0;j<triangles.length;j+=3){
var face = [polygons[i][triangles[j+2]], polygons[i][triangles[j+1]], polygons[i][triangles[j]]];
var face = [polygon[triangles[j+2]], polygon[triangles[j+1]], polygon[triangles[j]]];
var foundEdges = [false, false, false];//ab, bc, ca
for (var k=0;k<polygonEdges[i].length;k++){
......
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