POV-Ray : Newsgroups : povray.binaries.images : Table Leg Using Surface of Revolution Server Time
14 Aug 2024 03:14:07 EDT (-0400)
  Table Leg Using Surface of Revolution (Message 11 to 16 of 16)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Peter Hertel
Subject: Re: Table Leg Using Surface of Revolution
Date: 15 Jan 2003 02:52:06
Message: <3e251326$1@news.povray.org>
> Oh, I'm also wondering something...is there any way to declare Table_Leg,
> then set say 4 of them up if I were making a table? I haven't really tried
> yet, but I have a feeling it wouldn't work as the only way to move the
legs
> would be to change every point in the por for each leg...right? hmm, this
is
> making me very curious... :)

Unleash the true power of POV-Ray =)

#declare Table_Leg = sor{...} // your sor object here

object {Table_Leg translate <-1,0,-1>}
object {Table_Leg translate <-1,0,1>}
object {Table_Leg translate <1,0,-1>}
object {Table_Leg translate <1,0,1>}

Very nice work on the texture!

-Peter


Post a reply to this message

From: Artis Rozentals
Subject: Re: Table Leg Using Surface of Revolution
Date: 15 Jan 2003 11:31:24
Message: <m2n0m2v0gy.fsf@localhost.localdomain>
"Peter Hertel" <peter**NO@SPAM**hertel.no> writes:

> Unleash the true power of POV-Ray =)

Too bad he didn't ask for railing, loops are the true pover (;

-- 
email  : art### [at] aaaapollolv
jabber : aro### [at] jabberorg
ICQ    : 158902222


Post a reply to this message

From: Ross Litscher
Subject: Re: Table Leg Using Surface of Revolution
Date: 15 Jan 2003 12:35:37
Message: <3e259be9$1@news.povray.org>
wow, thats looks really nice for just a few days with pov

Optium <Opt### [at] coxnet> wrote in message news:3e247c6b@news.povray.org...
> Thanks alot guys, I think now it's beginning to look realistic. :)
>
>
>


Post a reply to this message

From: Peter Hertel
Subject: Re: Table Leg Using Surface of Revolution
Date: 15 Jan 2003 17:30:38
Message: <3e25e10e$1@news.povray.org>
> > Unleash the true power of POV-Ray =)
>
> Too bad he didn't ask for railing, loops are the true pover (;
>

#macro is another true power..
Lets see..

#macro Table_Leg(Table_Leg_Location)
    cylinder {0,y*2,0.1 pigment {rgb 1} translate Table_Leg_Location}
#end

#local Z = 0;
#while (Z <= 1)
    #local Q = 0;
    #while (Q <= 1)
        Table_Leg(<Q,0,Z>)
    #local Q = Q+1;
    #end
#local Z = Z+1;
#end

:)


Post a reply to this message

From: Edward Coffey
Subject: Re: Table Leg Using Surface of Revolution
Date: 16 Jan 2003 19:20:41
Message: <3E274F39.4080503@alphalink.com.au>
Peter Hertel wrote:
...
> #local Z = 0;
> #while (Z <= 1)
>     #local Q = 0;
>     #while (Q <= 1)
>         Table_Leg(<Q,0,Z>)
>     #local Q = Q+1;
>     #end
> #local Z = Z+1;
> #end

Yay 7 lines of code to do what 4 lines would have done so much more 
clearly, POV really is powerful!  :?)


Post a reply to this message

From: Peter Hertel
Subject: Re: Table Leg Using Surface of Revolution
Date: 17 Jan 2003 06:18:58
Message: <3e27e6a2@news.povray.org>
> Yay 7 lines of code to do what 4 lines would have done so much more
> clearly, POV really is powerful!  :?)

#local Z=0;#while(Z<=1)#local Q=0;#while (Q<=1)Table_Leg(<Q,0,Z>)#local
Q=Q+1;#end#local Z=Z+1;#end

There you go! Two lines for your viewing pleasure!

=)


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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