POV-Ray : Newsgroups : povray.newusers : Infinite primitives? : Re: Infinite primitives? Server Time
5 Sep 2024 12:15:41 EDT (-0400)
  Re: Infinite primitives?  
From: John VanSickle
Date: 12 Nov 2000 21:17:03
Message: <3A0F50A5.1C648BDF@erols.com>
Simon Lemieux wrote:
> 
> I was wondering if it was possible to simply have an infinite
> cylinder?
> Without any tricks... this should normally be trivial for the
> renderer... but was this coded?

I think this ought to work.  It uses the Reorient() macro from my
Thoroughly Useful Macros file:

#macro InfiniteCylinder(PointA,PointB,Radius)
quadric { <1,0,1>,<0,0,0>,<0,0,0>,-Radius*Radius
  Reorient(y,vnormalize(PointB-PointA))
  translate PointA
}
#end

Hope this helps,
John
-- 
ICQ: 46085459


Post a reply to this message

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