{"cells":[{"attachments":{},"cell_type":"markdown","metadata":{"id":"zKgez--BD52d"},"source":["# Geom to Stl\n","\n","> Converting Geometry Data to STL Print outs.\n","- toc: true\n","- prettify: true"]},{"attachments":{},"cell_type":"markdown","metadata":{},"source":["<details open>\n","<summary>"]},{"cell_type":"markdown","metadata":{"id":"uJuSroo2D52d"},"source":["## About: "]},{"attachments":{},"cell_type":"markdown","metadata":{},"source":["</summary>"]},{"cell_type":"markdown","metadata":{},"source":["<div id=\"display_map\"></div>"]},{"cell_type":"markdown","metadata":{"id":"uE3QvuQxD52e"},"source":["### Whats inside?"]},{"attachments":{},"cell_type":"markdown","metadata":{"id":"qE6Ch3eYD52e"},"source":["In this notebook, we build a tool to convert geometry data to an STL, dynamically.\n","\n","- A geojson map will be loaded in. \n","- It's shape will be simplified to be friendly with 3d printing.\n","- The shape will then be extruded and hollowed out at its base so we can put LED lights inside it.\n","- The boundary lines will be extruded and inserted into the hollow portion to create walls to prevent light bleaching.\n","- The boundary lines will be used to carve out lines on the top of the map for clarity"]},{"attachments":{},"cell_type":"markdown","metadata":{},"source":["</details>\n","<details open>\n","<summary>"]},{"attachments":{},"cell_type":"markdown","metadata":{"id":"342oF4VhD52g"},"source":["## The Function"]},{"attachments":{},"cell_type":"markdown","metadata":{},"source":["</summary>"]},{"cell_type":"markdown","metadata":{},"source":["<!-- Jscad -->\n","<script language=\"javascript\" src=\"http://localhost:8080/cdn/jscad/jscad-modeling.min.js\"></script>  \n","\n","<script src=\"http://localhost:8080/cdn/jscad/no_openJsCad_CSG.js\"></script> \n","\n","<!-- Turf -->\n","<script src='https://unpkg.com/@turf/turf@6/turf.min.js'></script>\n","\n","<!-- Leaflet -->\n","<link rel=\"stylesheet\" href=\"https://unpkg.com/leaflet@1.9.4/dist/leaflet.css\"/>\n","\n","<script src=\"https://unpkg.com/leaflet@1.9.4/dist/leaflet.js\"></script> \n","\n","\n","<script src=\"http://localhost:8080/cdn/geo/proj4.js\"></script>"]},{"cell_type":"markdown","metadata":{},"source":["<script type=\"module\">  \n","import { initialize } from '/cdn/meshmaps.js';\n","initialize(); \n","</script>"]},{"cell_type":"markdown","metadata":{},"source":["<style>\n"," #display_map { width: 600px; height: 600px; }\n","</style> "]},{"cell_type":"markdown","metadata":{},"source":["</details>\n","<details open>\n","<summary>"]},{"cell_type":"markdown","metadata":{},"source":["## Result"]},{"cell_type":"markdown","metadata":{},"source":["</summary>"]},{"cell_type":"markdown","metadata":{},"source":["<div id='renderer'></div>"]},{"cell_type":"markdown","metadata":{},"source":["</details>"]}],"metadata":{"colab":{"collapsed_sections":[],"name":"01_Download_and_Load.ipynb","provenance":[]},"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.11.7"}},"nbformat":4,"nbformat_minor":0}
