POV-Ray : Newsgroups : povray.binaries.images : One Word Server Time
1 Aug 2024 08:22:42 EDT (-0400)
  One Word (Message 45 to 54 of 54)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: stbenge
Subject: sin/cos gear (4kb)
Date: 2 Jan 2009 03:59:03
Message: <495dd757@news.povray.org>
andrel wrote:
> On 31-Dec-08 22:39, stbenge wrote:
>> The loop is the engine, sin/cos are two parts of a gear, and pi is the 
>> number of teeth. 

Maybe my metaphor isn't entirely accurate...

> I wanna see that wheel with pi teeth. Can you render one?

Sure! I'm going to assume you aren't actually asking for a visual pun. 
Here is some code I put together:

#macro gear(gRad, gInset, nTeeth, pThick)
  //gRad		gear radius
  //gInset	teeth depth (from radius)
  //nTeeth	number of teeth
  //pThick	prism thickness
  #local nPoints = 4*nTeeth;
  #local tooth = pi*2/nPoints;
  prism{
   -pThick,pThick,nPoints
   #local V = 0;
   #while(V<nPoints)
    #local rV = (gRad-gInset/2)+cos(tooth*V*nTeeth+pi/4)*gInset/2;
    <sin(tooth*V)*rV, cos(tooth*V)*rV>
    #local V = V + 1;
   #end
   rotate y*180/nPoints
  }
#end

object{
  gear(1,.1, 30, .1)
  pigment{rgb 1}
}

It's just your basic gear, nothing fancy.

Sam


Post a reply to this message


Attachments:
Download 'gear.png' (3 KB)

Preview of image 'gear.png'
gear.png


 

From: andrel
Subject: Re: sin/cos gear (4kb)
Date: 2 Jan 2009 04:54:04
Message: <495DE49E.5010407@hotmail.com>
On 02-Jan-09 9:59, stbenge wrote:
> andrel wrote:
>> On 31-Dec-08 22:39, stbenge wrote:
>>> The loop is the engine, sin/cos are two parts of a gear, and pi is 
>>> the number of teeth. 
> 
> Maybe my metaphor isn't entirely accurate...
> 
>> I wanna see that wheel with pi teeth. Can you render one?
> 
> Sure! I'm going to assume you aren't actually asking for a visual pun. 

Why on earth would you do that?

> Here is some code I put together:

But thanks anyway.


Post a reply to this message

From: Trevor G Quayle
Subject: Re: One Word
Date: 2 Jan 2009 09:55:01
Message: <web.495e2999877dfbf3c67b294d0@news.povray.org>
Larry Hudson <org### [at] yahoocom> wrote:
> Eero Ahonen wrote:
> > Though I wouldn't consider raytracing as geeky hobby. I think it's more
> > mathematical hobby.
>
> I would say that math as a hobby is pretty geeky.    ;-)
>
>       -=- Larry -=-

Yes.  I would consider math more as a habit for myself.  People at work must
think I'm odd scribbling away trig and geometry equations on paper all the time
when I'm trying to work out some CSG postioning and such.

-tgq


Post a reply to this message

From: SafePit
Subject: Re: One Word
Date: 2 Jan 2009 21:40:00
Message: <web.495ecfc5877dfbf3f434b86a0@news.povray.org>
Nice image alphaQuad!  I'll have to dig and see if I have that model still.  It
is always great to see more LEGO/POV-Ray renders.


Post a reply to this message

From: Jim Holsenback
Subject: Re: One Word
Date: 3 Jan 2009 11:13:25
Message: <495f8ea5@news.povray.org>
"Larry Hudson" <org### [at] yahoocom> wrote in message 
news:495c2f1d$1@news.povray.org...
> I would say that math as a hobby is pretty geeky.    ;-)

yes .... but it (math) explains so many things. the universal language 
right?


Post a reply to this message

From: Darren New
Subject: Re: One Word
Date: 3 Jan 2009 12:41:54
Message: <495fa362@news.povray.org>
Jim Holsenback wrote:
> yes .... but it (math) explains so many things. the universal language 
> right? 

Actually, math explains nothing, which is why it's the universal language. :-)

-- 
   Darren New, San Diego CA, USA (PST)
   The NFL should go international. I'd pay to
   see the Detroit Lions vs the Roman Catholics.


Post a reply to this message

From: stbenge
Subject: Re: sin/cos gear (4kb)
Date: 4 Jan 2009 02:25:48
Message: <4960647c$1@news.povray.org>
andrel wrote:
> On 02-Jan-09 9:59, stbenge wrote:
>> andrel wrote:
>>> On 31-Dec-08 22:39, stbenge wrote:
>>>> The loop is the engine, sin/cos are two parts of a gear, and pi is 
>>>> the number of teeth. 
>>
>> Maybe my metaphor isn't entirely accurate...
>>
>>> I wanna see that wheel with pi teeth. Can you render one?
>>
>> Sure! I'm going to assume you aren't actually asking for a visual pun. 
> 
> Why on earth would you do that?

A severe lapse of humor, evidently :(

>> Here is some code I put together:
> 
> But thanks anyway.

I've failed!


Post a reply to this message

From: Jim Charter
Subject: Re: One Word
Date: 4 Jan 2009 12:29:58
Message: <4960f216@news.povray.org>
Eero Ahonen wrote:

> 
> I think it's more
> mathematical hobby.
> 



I knew it!!!!!!


Post a reply to this message

From: Sven Littkowski
Subject: Re: One Word
Date: 9 Jan 2009 22:43:46
Message: <49681972@news.povray.org>
Not bad, but increase the contrast: the gray shouldbe much darker in 
shadowed areas. Otherwise great!


Post a reply to this message

From: Alain
Subject: Re: One Word
Date: 11 Jan 2009 10:22:17
Message: <496a0ea9$1@news.povray.org>
Sven Littkowski nous illumina en ce 2009-01-09 22:36 -->
> Not bad, but increase the contrast: the gray shouldbe much darker in 
> shadowed areas. Otherwise great! 
> 
> 
Probably a question of ambient value in the finish.

-- 
Alain
-------------------------------------------------
A nuclear war can ruin your whole day.


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.