declare const _default: "/*\n Hello there!\n\n If you're new to OpenSCAD, please learn the basics here:\n https://openscad.org/documentation.html\n\n There are lots of amazing libraries in the OpenSCAD ecosystem\n (see this list: https://openscad.org/libraries.html).\n\n Some of these libraries are bundled with this playground\n (search for \"demo\" or \"example\" in the file explorer above)\n and can be included directly from your models.\n\n Any bugs (this is an Alpha!) or ideas of features?\n https://github.com/openscad/openscad-playground/issues/new\n*/\n\ntitle = \"OpenSCAD\";\n\ncolor(\"gray\")\n rotate([90, 0, 0])\n translate([0, debug ? -60 : -20, 0])\n linear_extrude(1)\n text(title,\n halign=\"center\",\n valign=\"center\");\n\n// You can find the original for the following example in the file explorer above,\n// under openscad / examples / Basic / CSG-modules.scad\n\n// CSG-modules.scad - Basic usage of modules, if, color, $fs/$fa\n\n// Change this to false to remove the helper geometry\ndebug = true;\n\n// Global resolution\n$fs=$preview ? 1 : 0.1; // Don't generate smaller facets than 0.1 mm\n$fa=$preview ? 15 : 5; // Don't generate larger angles than 5 degrees\n\n// Main geometry\ndifference() {\n intersection() {\n body();\n intersector();\n }\n holes();\n}\n\n// Helpers\nif (debug) helpers();\n\n// Core geometric primitives.\n// These can be modified to create variations of the final object\n\nmodule body() {\n color(\"Blue\") sphere(10);\n}\n\nmodule intersector() {\n color(\"Red\") cube(15, center=true);\n}\n\nmodule holeObject() {\n color(\"Lime\") cylinder(h=20, r=5, center=true);\n}\n\n// Various modules for visualizing intermediate components\n\nmodule intersected() {\n intersection() {\n body();\n intersector();\n }\n}\n\nmodule holeA() rotate([0,90,0]) holeObject();\nmodule holeB() rotate([90,0,0]) holeObject();\nmodule holeC() holeObject();\n\nmodule holes() {\n union() {\n holeA();\n holeB();\n holeC();\n }\n}\n\nmodule helpers() {\n // Inner module since it's only needed inside helpers\n module line() color(\"Black\") cylinder(r=1, h=10, center=true);\n\n scale(0.5) {\n translate([-30,0,-40]) {\n intersected();\n translate([-15,0,-35]) body();\n translate([15,0,-35]) intersector();\n translate([-7.5,0,-17.5]) rotate([0,30,0]) line();\n translate([7.5,0,-17.5]) rotate([0,-30,0]) line();\n }\n translate([30,0,-40]) {\n holes();\n translate([-10,0,-35]) holeA();\n translate([10,0,-35]) holeB();\n translate([30,0,-35]) holeC();\n translate([5,0,-17.5]) rotate([0,-20,0]) line();\n translate([-5,0,-17.5]) rotate([0,30,0]) line();\n translate([15,0,-17.5]) rotate([0,-45,0]) line();\n }\n translate([-20,0,-22.5]) rotate([0,45,0]) line();\n translate([20,0,-22.5]) rotate([0,-45,0]) line();\n }\n}\n\necho(version=version());\n// Written by Marius Kintel \n//\n// To the extent possible under law, the author(s) have dedicated all\n// copyright and related and neighboring rights to this software to the\n// public domain worldwide. This software is distributed without any\n// warranty.\n//\n// You should have received a copy of the CC0 Public Domain\n// Dedication along with this software.\n// If not, see .\n"; export default _default; //# sourceMappingURL=default-scad.d.ts.map