Welcome! Log In Create A New Profile

Advanced

How to make a donut ?

Posted by Replace 
How to make a donut ?
November 03, 2013 10:49AM
I would like to be able to make a donut-shape.

So in fact a ring that is a circle 90 degrees on its perimeter.

Should I repeat a sphere around a circle to get there, or is there a better formula ?

Thomas


www.3daybreaker.blogspot.com

Orca V4.4 rebuild to Ramps with Mk8 and E3D, as well as a Rostock Delta Mini and an OLO in backorder :-)
Re: How to make a donut ?
November 03, 2013 12:19PM
//from my library

module torus2(r1, r2)
{
rotate_extrude() translate([r1,0,0]) circle(r2);
}

module oval_torus(inner_radius, thickness=[0, 0])
{
rotate_extrude() translate([inner_radius+thickness[0]/2,0,0]) ellipse(width=thickness[0], height=thickness[1]);
}

torus2(80,20);

Edited 1 time(s). Last edit at 11/03/2013 12:50PM by Xabbax.
Re: How to make a donut ?
December 21, 2013 04:21AM
@ xabbax

great thanks. it works :-)

I will redesign my spaceship with your module !

Thomas


www.3daybreaker.blogspot.com

Orca V4.4 rebuild to Ramps with Mk8 and E3D, as well as a Rostock Delta Mini and an OLO in backorder :-)
Re: How to make a donut ?
December 21, 2013 05:29AM
Quote
Replace
@ xabbax

great thanks. it works :-)

I will redesign my spaceship with your module !

Thomas

I got it from the regular_shapes.scad file - lots more modules there

* OpenSCAD Shapes Library (www.openscad.org)
* Copyright (C) 2010-2011 Giles Bathgate, Elmo Mäntynen

[github.com]
Re: How to make a donut ?
December 22, 2013 09:40AM
@ xabbax

please find my design, with the help of your code at : [www.thingiverse.com]

Regard Thomas


www.3daybreaker.blogspot.com

Orca V4.4 rebuild to Ramps with Mk8 and E3D, as well as a Rostock Delta Mini and an OLO in backorder :-)
Sorry, only registered users may post in this forum.

Click here to login