POV-Ray : Newsgroups : povray.general : Help: Place objects within a circle : Help: Place objects within a circle Server Time
4 Nov 2024 21:20:22 EST (-0500)
  Help: Place objects within a circle  
From: Marc Champagne
Date: 11 Sep 2003 22:11:32
Message: <Xns93F3E154B286BPOVMIKA@204.213.191.226>
Hi folks,

I'm trying (in vain) to write a segment of code that will randomly place
a declared object within a fixed-radious circular x-z plane at a
specific y position. 

Now my math is not so hot, so I thought of placing said objects within a
fixed-size x-z square at a specific y position and use CSG to cut out the
circle of objects I want, but that will leave some objects along the
circumference of the circle partially cut. 

Not very elegant...

Hmmm

Well it took writing this message to figure out that I can place the
object randomly on the x radious and then randomly rotate it arround the
y, it will always remain within the circle. 

Am I on the right track here?

They should have had POV in school, it would of given me a reason to
remember my trigonometry. :) 

Much appreciated. 

-- 
Marc Champagne
marcch.AT.videotron.DOT.ca
Montreal, CANADA


Post a reply to this message

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