Skip to content

Instantly share code, notes, and snippets.

View tinkerology's full-sized avatar

Scott Leslie tinkerology

View GitHub Profile
@tinkerology
tinkerology / sign.scad
Created October 7, 2020 00:17
Sample sign showing text and shapes integrated
$fn=40;
module drawStar(sides, radius)
{
for ( i = [ 0 : sides-1] )
{
hull()
{
circle(radius/4);
@tinkerology
tinkerology / SVG_with_script.svg
Created May 14, 2020 14:39
SVG with script testing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tinkerology
tinkerology / PrintABlokExtensionTest.scad
Created March 13, 2020 03:42
Problem rendering two PrintABloks side by side
//
// Expansion set for PrinkABlok
// by Scott Leslie (@tinkerology)
// Sample STLs can be found at:
//
//
// PrintABlok by Joe Larson
// Based on : https://www.thingiverse.com/thing:4171518
//
@tinkerology
tinkerology / RoundedCube.scad
Created February 17, 2020 05:56
Create a cube with rounded sides
$fn=60;
// Answer from: https://stackoverflow.com/users/1320888/cutetare
// https://stackoverflow.com/questions/33146741/way-to-round-edges-of-objects-openscad/33289349#33289349
module roundedcube(xx, yy, height, radius) {
difference(){
cube([xx,yy,height]);
@tinkerology
tinkerology / TestAngleText.scad
Last active January 26, 2020 05:33
OpenSCAD module to draw numbers around a circle
MODEL_COUNT=1;
function countFunc(count,numbers) =
(count > 0 ? count : len(numbers));
function lableFunc(i, numbers) =
( len(numbers) > i ? numbers[i] : str(i) );
@tinkerology
tinkerology / PinewoodDerbyCar.scad
Last active October 22, 2019 02:30
Fully 3D printable pinewood derby car body #ERRF2019
$fn=15;
MM_PER_INCH=25.4;
function calcScale(scaleFactors, count, iteration) =
scaleFactors[0] +
(( scaleFactors[1]-scaleFactors[0]))*iteration/count;
// General routine to make organic shapes by rotating,
@tinkerology
tinkerology / HullSweep.scad
Created February 17, 2019 17:10
OpenSCAD module to sweep a shape with XYZ offset and rotation
$fn=30;
function calcScale(scaleFactors, count, iteration) =
scaleFactors[0] +
(( scaleFactors[1]-scaleFactors[0]))*iteration/count;
module hullSweep(steps, rotation, offsetTo, scaleFactors)
{
for ( i= [0:steps-2] )
@tinkerology
tinkerology / HullBetweenIssue.scad
Created June 6, 2016 04:39
Issue with not pre-rendering difference
DETAIL=120;
module hullBetween()
{
// Combine the hull between and the original objects
difference()
{
hull()
{
@tinkerology
tinkerology / index.html
Created April 13, 2015 04:48
JS Bin Background Generator V1.2 // source http://jsbin.com/jufoxi
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<meta name="description" content="Background Generator V1.2">
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
a.export, a.export:visited {
text-decoration: none;