POV-Ray : Newsgroups : povray.binaries.images : Need a belt ? Server Time
3 Nov 2024 03:03:27 EST (-0500)
  Need a belt ? (Message 1 to 5 of 5)  
From: m o p s
Subject: Need a belt ?
Date: 7 Aug 2000 06:51:28
Message: <398e94b0@news.povray.org>
Here is a second macro i have made.
It build a belt between two wheels ( so i named it "buildbelt" )
and it could make it roll ( i will post two animations for example at
p.b.a )


Note : the macros are in "mopspatch.inc" ( see
http://perso.wanadoo.fr/mops/atelier.htm )
and feel free to use, rewrite and improve them, there is no copyrigth !


The syntax is like :

#declare belt_R1=3;    /* radius of the first wheel, his center is O
#declare belt_R2=5;    /* the second one
#declare belt_d=10;    /* distance between the two wheels
#declare belt_nb=30;    /* number of elements
#declare belt_tour=-1;    /* number of revolution when clock go from 0 to 1
#declare belt_typ=2;    /* if 1 belt_tour is the number of revolution of the
wheel
                                    /*if 2 belt_tour is the number of
revolution of the belt
#declare belt_norm=y; /* for the orientation of the elements

/* definition of the elements :

#declare k=1;
#while (k<belt_nb+1)
                               #declare
belt_el[k]=object{maillon(Steel,Alu4)
                                                    scale <1,2,1
>material{ecran}}
  /* maillon is an object created in my mopspatch.inc, it is an example
#declare k=k+1;
#end

object { buildbelt(clock) }

it give back four variables :
belt_al :  belt angle ( usefull to put the belt on a floor )
belt_Long : belt length
belt_Dl=  length of one element
belt_R1bis  : to calculate the visible radius of the wheel
belt_R2bis

Hope i am understable,
--
My Own Private Square.
http://perso.wanadoo.fr/mops/


Post a reply to this message


Attachments:
Download 'belts.jpg' (25 KB) Download 'belt_ex1.jpg' (21 KB) Download 'mopscar.jpg' (16 KB)

Preview of image 'belts.jpg'
belts.jpg

Preview of image 'belt_ex1.jpg'
belt_ex1.jpg

Preview of image 'mopscar.jpg'
mopscar.jpg


 

From: J  Grimbert
Subject: Re: Need a belt ?
Date: 7 Aug 2000 09:44:21
Message: <398EBD3E.AE9AE8D7@atos-group.com>
"m.o.p.s" wrote:
> 
> Here is a second macro i have made.
> It build a belt between two wheels ( so i named it "buildbelt" )
> and it could make it roll ( i will post two animations for example at
> p.b.a )
> 

Well, interesting. But I'm nitpicking (probably too much, so
do not bother...)

The belt are fine for modeling infinite tension, but in
reality, usually, one of the 'line' between the wheels is not
straight: it is curved, due to the gravity and the lesser
tension between the motored wheel and the motor wheel.
It may even happen on loose belt, that both 'line's are curved
when not moving, and the direction of the movement, as well
as the driving wheel will decide which line go straight at
move time.

What about adding a third wheel (outside the belt), to adjust
the tension ? or a more complex thing like the bicycle one ?

> 
> Hope i am understable,

Yes, I'm not sure I was.

P.S: Great work anyway!


Post a reply to this message

From: Josh English
Subject: Re: Need a belt ?
Date: 7 Aug 2000 11:16:50
Message: <398ED2E5.2F17391F@spiritone.com>
If this animates you've solved a problem I started several montsh ago and got
nowhere with!

Thanks.

Josh

"m.o.p.s" wrote:

> Here is a second macro i have made.
> It build a belt between two wheels ( so i named it "buildbelt" )
> and it could make it roll ( i will post two animations for example at
> p.b.a )
>
> Note : the macros are in "mopspatch.inc" ( see
> http://perso.wanadoo.fr/mops/atelier.htm )
> and feel free to use, rewrite and improve them, there is no copyrigth !
>
> The syntax is like :
>
> #declare belt_R1=3;    /* radius of the first wheel, his center is O
> #declare belt_R2=5;    /* the second one
> #declare belt_d=10;    /* distance between the two wheels
> #declare belt_nb=30;    /* number of elements
> #declare belt_tour=-1;    /* number of revolution when clock go from 0 to 1
> #declare belt_typ=2;    /* if 1 belt_tour is the number of revolution of the
> wheel
>                                     /*if 2 belt_tour is the number of
> revolution of the belt
> #declare belt_norm=y; /* for the orientation of the elements
>
> /* definition of the elements :
>
> #declare k=1;
> #while (k<belt_nb+1)
>                                #declare
> belt_el[k]=object{maillon(Steel,Alu4)
>                                                     scale <1,2,1
> >material{ecran}}
>   /* maillon is an object created in my mopspatch.inc, it is an example
> #declare k=k+1;
> #end
>
> object { buildbelt(clock) }
>
> it give back four variables :
> belt_al :  belt angle ( usefull to put the belt on a floor )
> belt_Long : belt length
> belt_Dl=  length of one element
> belt_R1bis  : to calculate the visible radius of the wheel
> belt_R2bis
>
> Hope i am understable,
> --
> My Own Private Square.
> http://perso.wanadoo.fr/mops/
>
>  [Image]
>
>  [Image]
>
>  [Image]

--
Josh English -- Lexiphanic Lethomaniac
eng### [at] spiritonecom
The POV-Ray Cyclopedia http://www.spiritone.com/~english/cyclopedia/


Post a reply to this message

From: Steve
Subject: Re: Need a belt ?
Date: 7 Aug 2000 17:19:55
Message: <slrn8ou80i.of2.steve@zero-pps.localdomain>
This looks very useful.  

Please put code like this in p.t.s-f or another appropriate
group for macros etc.  There's no problem with posting it 
here but the problem comes when you're trying to find 
a utility in say a years time, if they're all in p.t.s-f
it's easy to find, but if they're scattered around in binaries
groups then it's a thankless task. 

I'm sure I'll find a use for your macro, thanks for sharing. 

-- 
Cheers
Steve              email mailto:ste### [at] zeroppsuklinuxnet

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.zeropps.uklinux.net/

or  http://start.at/zero-pps

  9:02pm  up 23 days, 19:28,  2 users,  load average: 1.86, 1.91, 1.92


Post a reply to this message

From: David Fontaine
Subject: Re: Need a belt ?
Date: 8 Aug 2000 01:05:28
Message: <398F931C.E06711AF@faricy.net>
"J. Grimbert" wrote:

> The belt are fine for modeling infinite tension, but in
> reality, usually, one of the 'line' between the wheels is not
> straight: it is curved, due to the gravity and the lesser
> tension between the motored wheel and the motor wheel.
> It may even happen on loose belt, that both 'line's are curved
> when not moving, and the direction of the movement, as well
> as the driving wheel will decide which line go straight at
> move time.

If you were going for physical accuracy you would have a prenty daunting
task:
http://mathworld.wolfram.com/Catenary.html

--
David Fontaine     <dav### [at] faricynet>     ICQ 55354965
Please visit my website: http://www.faricy.net/~davidf/


Post a reply to this message

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