# Customizable curve generator

## by kakaroto, published Feb 14, 2013

Customizable curve generator by kakaroto Feb 14, 2013
0 Share

### Thing Apps Enabled

Open in Customizer Order This Printed View All Apps

View All

## Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag.

Print Thing Tag

# Summary

This is a customizable curve generator which can generate up to 5 different types of curves.
The Rhodonea (Rose) Curve, Epicycloid, Epitrochoid, Hypocycloid and Hypotrochoid curves can be generated with varying parameters.

# Instructions

UPDATE: Now supports up to 5 different types of curves. See updated instructions below for more information. I have also removed the extrusion option since openscad doesn't support rotate_extrude correctly.

This script will generate an artistic rendering of a mathematical curve. It was originally a generator for the Rhodonea (Rose) Curve, but I've now added support for 4 more curve types.
Here are the equations used for each one of those curves :
Rhodonea curve : x=cos(a/bt)sin(t); y=cos(a/bt)cos(t)
Epicycloid : x=(a+b)cos(t)-bcos(((a/b)+1)t); y=(a+b)sin(t)-bsin(((a/b)+1)t)
Epitrochoid : x=(a+b)cos(t)-ccos(((a/b)+1)t); y=(a+b)sin(t)-csin(((a/b)+1)t)
Hypocycloid : x=(a-b)cos(t)+bcos(((a/b)-1)t); y=(a-b)sin(t)-bsin(((a/b)-1)t)
Hypotrochoid: x=(a-b)cos(t)+ccos(((a/b)-1)t); y=(a-b)sin(t)-csin(((a/b)-1)t)

You can set the 'a, 'b', and 'c' parameters to affect the look of the curve (see http://en.wikipedia.org/wiki/File:Rose-rhodonea-curve-7x9-chart-improved.svg for example).
You can define how many points you want to be used to draw the result (higher gives better results, but takes longer to generate the STL). You can also control the thickness and height of the curve. The rose radius will set the radius of the petals. This will basically mean that the rose should fit in a circle with that radius.

Experiment, create and enjoy!

view more

# All Apps

Customizer is the easiest way to take great 3D printable designs and make them your own. Make your OpenSCAD designs infinitely more valuable by empowering the community to customize them.

Customizer Thing App

Auto-magically prepare your 3D models for 3D printing. A cloud based 3D models Preparing and Healing solution for 3D Printing, MakePrintable provides features for model repairing, wall thickness...

Kiri:Moto is an integrated cloud-based slicer and tool-path generator for 3D Printing, CAM / CNC and Laser cutting. *** 3D printing mode provides model slicing and GCode output using built-in...

KiriMoto Thing App

With 3D Slash, you can edit 3d models like a stonecutter. A unique interface: as fun as a building game! The perfect tool for non-designers and children to create in 3D.

Print through a distributed network of 3D printing enthusiasts from across the US, at a fraction of the cost of the competitors. We want to change the world for the better through technology, an...

Quickly Scale, Mirror or Cut your 3D Models

3D Print a wide range of designs with Treatstock. Easy to use tools to get the perfect result. The global 3D printing network that connects you with high-quality and fast working print services nea...

Top