rounded surface help

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

rounded surface help

Gergely Gati
Hello,

I tried to create a surface like the yellow part of this: http://bit.ly/K6mWIX with OpenSCAD without success. Have you got any advice on this? I guess it's very simple because it's a common shape but somehow I could't figure it out.

Thanks a lot,
gega



Reply | Threaded
Open this post in threaded view
|

Re: rounded surface help

Triffid Hunter
use a section of a cone, start with cylinder(r1 = 20, r2 = 10, h = 10);

On Mon, May 28, 2012 at 10:39 PM, Gergely Gati <[hidden email]> wrote:
Hello,

I tried to create a surface like the yellow part of this: http://bit.ly/K6mWIX with OpenSCAD without success. Have you got any advice on this? I guess it's very simple because it's a common shape but somehow I could't figure it out.

Thanks a lot,
gega


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad

Reply | Threaded
Open this post in threaded view
|

Re: rounded surface help

Giles Bathgate-2
In reply to this post by Gergely Gati
You could subtract a cone from a cube, and subtract the result from
your part, or you could create a union involving a cone.

Cone in openscad is done using cylinder(r1=10,r2=20);

Regards

Giles.

On 28 May 2012 13:39, Gergely Gati <[hidden email]> wrote:

> Hello,
>
> I tried to create a surface like the yellow part of this: http://bit.ly/K6mWIX with OpenSCAD without success. Have you got any advice on this? I guess it's very simple because it's a common shape but somehow I could't figure it out.
>
> Thanks a lot,
> gega
>
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad

Reply | Threaded
Open this post in threaded view
|

Re: rounded surface help

nophead
Or just take the hull of two cylinders and whatever makes the other corners.

On 28 May 2012 13:44, Giles Bathgate <[hidden email]> wrote:
You could subtract a cone from a cube, and subtract the result from
your part, or you could create a union involving a cone.

Cone in openscad is done using cylinder(r1=10,r2=20);

Regards

Giles.

On 28 May 2012 13:39, Gergely Gati <[hidden email]> wrote:
> Hello,
>
> I tried to create a surface like the yellow part of this: http://bit.ly/K6mWIX with OpenSCAD without success. Have you got any advice on this? I guess it's very simple because it's a common shape but somehow I could't figure it out.
>
> Thanks a lot,
> gega
>
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad

Reply | Threaded
Open this post in threaded view
|

Re: rounded surface help

Triffid Hunter
On Mon, May 28, 2012 at 10:57 PM, nop head <[hidden email]> wrote:
Or just take the hull of two cylinders and whatever makes the other corners.

yeah for building body shapes best to learn hull(), it's awesome!

Reply | Threaded
Open this post in threaded view
|

Re: rounded surface help

Gergely Gati
In reply to this post by nophead
Thanks for the tips, it's works now! I was mindless that I didn't find it out earlier.

gega

On 2012. May 28., at 14:57 , nop head wrote:

Or just take the hull of two cylinders and whatever makes the other corners.

On 28 May 2012 13:44, Giles Bathgate <[hidden email]> wrote:
You could subtract a cone from a cube, and subtract the result from
your part, or you could create a union involving a cone.

Cone in openscad is done using cylinder(r1=10,r2=20);

Regards

Giles.

On 28 May 2012 13:39, Gergely Gati <[hidden email]> wrote:
> Hello,
>
> I tried to create a surface like the yellow part of this: http://bit.ly/K6mWIX with OpenSCAD without success. Have you got any advice on this? I guess it's very simple because it's a common shape but somehow I could't figure it out.
>
> Thanks a lot,
> gega
>
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad

Reply | Threaded
Open this post in threaded view
|

Re: rounded surface help

Peter Falke
In reply to this post by Triffid Hunter
Hi,
 
I had a look at your code for thing 21340. Awesome. I learnt a lot of how to use hull.
One question remind so, why do you use a linear_extrude for creating cubes and cylinders?
 
Thanx,
 
TakeItAndRun


 
2012/5/28 Triffid Hunter <[hidden email]>
On Mon, May 28, 2012 at 10:57 PM, nop head <[hidden email]> wrote:
Or just take the hull of two cylinders and whatever makes the other corners.

yeah for building body shapes best to learn hull(), it's awesome!


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad




--
[hidden email]

P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist:
Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu schreiben.
Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen.

P.S. In case my e-mail is shorter than you enjoy:
I am currently trying short replies instead of no replies at all.
Please let me know, if you like to read more.

Enjoy!

Reply | Threaded
Open this post in threaded view
|

Re: rounded surface help

Triffid Hunter
On Thu, May 31, 2012 at 10:41 PM, Peter Falke <[hidden email]> wrote:
I had a look at your code for thing 21340. Awesome. I learnt a lot of how to use hull.
One question remind so, why do you use a linear_extrude for creating cubes and cylinders?

I linear extrude squares as a shortcut to centering them in X and Y but not Z. the alternative is function cube_centered(size) { translate([size[0] / -2, size[1] / -2, 0]) cube(size); } which does the same thing but is slightly harder to read

I don't linear extrude circles in that, but I do have the cyl function because I couldn't get $fs to work.

I've since learned that I need to set $fa to 0.01 before $fs will do what I want, so that's redundant now

good luck :)