Dataset Viewer
Auto-converted to Parquet Duplicate
conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "human", "value": "Add demo for the hexagonBox shape and the repeat operator\n" }, { "from": "gpt", "value": "/**\r\n * Samples using the camelSCAD library.\r\n *\r\n * A parametric honeycombed style box\r\n *\r\n * @author jsconan\r\n * @license CC0-1.0\r\n */\r\n\r\n// As we need to ...
openscad
chosen
[ { "from": "system", "value": "Update MotorshaftFlatThickness to measured value\n" }, { "from": "human", "value": "//\n// Machine\n//\n\n// Coding-style\n// ------------\n//\n// Global variables are written in UpperCamelCase.\n// A logical hierarchy should be indicated using underscores, for exam...
openscad
chosen
[ { "from": "human", "value": "Use openscad to replace kokopelli piece to be more standard\n" }, { "from": "gpt", "value": "width = 97; // External width (except clipping mechanism)\nheight = 142; // External height (except clipping mechanism)\ncorner_radius = 14; // Round corner at the bottom cor...
openscad
chosen
[ { "from": "system", "value": "Add support bar only for length greater than 1\n" }, { "from": "human", "value": "/*\n* font3d\n* (C) Copyright 2014 Cameron Lai\n*\n* All rights reserved. This program and the accompanying materials\n* are made available under the terms of the GNU Lesser General Pu...
openscad
chosen
[ { "from": "system", "value": "Add minkowski sum to get rounded corners\n" }, { "from": "human", "value": "use <compass.scad>\nuse <arduino_footprint.scad>\nuse <battery_footprint.scad>\n\nthickness = 5;\n\ndifference()\n{\n\tunion()\n\t{\n\t\tarm();\n\t\ttranslate([20,0,0]) cube(size=[50,150,thi...
openscad
chosen
[ { "from": "human", "value": "Update knurled cap M5 demo\n" }, { "from": "gpt", "value": "include <cap.scad>;\n\n// Note that I get a very strange behavior with F5 mode, a fixed polygon covers\n// half my screen and some of the tee part is missing. When rendering in F6\n// mode, everying behaves...
openscad
chosen
[ { "from": "human", "value": "Add a sample to illustrate use of new mesh shapes\n" }, { "from": "gpt", "value": "/**\n * Samples using the camelSCAD library.\n *\n * A simple mesh grid\n *\n * @author jsconan\n * @license CC0-1.0\n */\n\n// As we need to use some shapes, use the right entry point...
openscad
chosen
[ { "from": "human", "value": "Add a bar mount support\n" }, { "from": "gpt", "value": "tube_diameter = 28;\nspace_margin = 1;\nthickness = 5;\nscrew_diameter = 5;\nscrew_head_thickness = 5;\n\na = tube_diameter + 2* space_margin +2*thickness;\ndifference(){\n\tunion(){\n\t\t//Main part\n\t\tcube(...
openscad
chosen
[ { "from": "human", "value": "Add demo for the starBox shape and some other shapes\n" }, { "from": "gpt", "value": "/**\n * Samples using the camelSCAD library.\n *\n * A parametric christmas star.\n *\n * @author jsconan\n * @license CC0-1.0\n */\n\n// As we need to use some shapes, use the righ...
openscad
chosen
[ { "from": "human", "value": "Create a support for component to be integrated in waterproof pocket\n" }, { "from": "gpt", "value": "thickness = 2;\nwidth=85;\nlength=133-30;\nnano_length_max=43.6;\nnano_length_min = 37.1;\nnano_width_max = 22.7;\nnano_internal_width = 9;\nnano_thickness=7;\n9V_wi...
openscad
chosen
[ { "from": "human", "value": "Add a piece to support embedded sensor, battery, and RF module\n" }, { "from": "gpt", "value": "RF_module_length = 160;\n9V_battery_length = 50;\nlength_for_arduino_nano = 30;\ntotal_length = RF_module_length +9V_battery_length+length_for_arduino_nano; \nwidth = 30;...
openscad
chosen
[ { "from": "human", "value": "Add libraries and include tutorial\n\nUses modules from MCAD\n" }, { "from": "gpt", "value": "/* Tutorial 7 - Using libraries */\n\n/* You can \"include\" or \"use\" scad files to use the modules they contain */\n\ntranslate([0, 0, -20]) {\n\t/* \"include\" is like p...
openscad
chosen
[ { "from": "system", "value": "Revert \"adjust buttons diameter again\"\n\nThis reverts commit 4d08f24b96e21f3ca8a92ca791474b8490ea357c.\n" }, { "from": "human", "value": "$fn = 50;\nbutton_h = 13;\noverlap = 5;\ntotal_height = 23;\nth = 2; // enclosure thickness\neps = 1e-1;\n\ncap_r = 7 / 2;\nc...
openscad
chosen
[ { "from": "human", "value": "Add sample to demo the render modes feature\n" }, { "from": "gpt", "value": "/**\n * Samples using the camelSCAD library.\n *\n * Rendering mode.\n *\n * @author jsconan\n * @license CC0-1.0\n */\n\n// Only include the core of the library as only the render mode help...
openscad
chosen
[ { "from": "human", "value": "Add a sample to illustrate the use of Bezier curves\n" }, { "from": "gpt", "value": "/**\r\n * Samples using the camelSCAD library.\r\n *\r\n * A simple framed heart using Bezier curve.\r\n *\r\n * @author jsconan\r\n * @license CC0-1.0\r\n */\r\n\r\n// As we need to...
openscad
chosen
[ { "from": "human", "value": "Add demo for the pipe shape\n" }, { "from": "gpt", "value": "/**\n * Samples using the camelSCAD library.\n *\n * A simple parametric pipe.\n *\n * @author jsconan\n * @license CC0-1.0\n */\n\n// As we need to use some shapes, use the right entry point of the library...
openscad
chosen
[ { "from": "system", "value": "Undo transparency of microusb connector\n" }, { "from": "human", "value": "/*\n Vitamin: MicroUSB\n Model of a Micro USB receptacle\n\n TODO: Add different types of Micro USB Connectors\n\n Derived from: http://www.farnell.com/datasheets/1693470.pdf\n\n ...
openscad
chosen
[ { "from": "human", "value": "Add a piece to link two potentiometer to make \"gimbal measurement\"\n" }, { "from": "gpt", "value": "use <MCAD/nuts_and_bolts.scad>\n\nguiding_length = 10;\nx = 2;\nspace = 15;\n\n\ndifference(){\nunion(){\n\thull(){\n\ttranslate([space +guiding_length/2,0,0]) cube(...
openscad
chosen
[ { "from": "human", "value": "Introduce new travel bracket design\n" }, { "from": "gpt", "value": "module TravelBracket(){\ndifference(){\n\tunion(){\n\t\timport(\"..//..//approved//TRV_BRKT.stl\");\n\t\t\n\t\t// Fill in unneeded holes\n\t\tcolor([255,0,0])translate([16,17,3])rotate([90,0,0])cyli...
openscad
chosen
[ { "from": "human", "value": "Add demo for the cushion shape and some helpers\n" }, { "from": "gpt", "value": "/**\r\n * Samples using the camelSCAD library.\r\n *\r\n * A simple parametric box with rounded corners.\r\n *\r\n * @author jsconan\r\n * @license CC0-1.0\r\n */\r\n\r\n// As we need to...
openscad
chosen
[ { "from": "system", "value": "Add animation in figure of 8\n" }, { "from": "human", "value": "yaw = 90;\nroll = 0;\npitch=0;\nlineLength=20;\nbearing =90;\nelevation = 45;\nuseNED=-1;\n rotate(a=bearing, v=[0,0,1*useNED]) rotate(a=elevation, v=[0,1*useNED,0]) translate(v=[lineLength,0,0]) rota...
openscad
chosen
README.md exists but content is empty.
Downloads last month
8