POV-Ray : Newsgroups : moray.win : YAYAPIP (yet another 'Yet Another Plugin Idea' post) : YAYAPIP (yet another 'Yet Another Plugin Idea' post) Server Time
29 Jul 2024 06:28:56 EDT (-0400)
  YAYAPIP (yet another 'Yet Another Plugin Idea' post)  
From: Simon de Vet
Date: 15 Apr 1999 17:10:57
Message: <371647D9.DE6F5450@istar.ca>
I'd like to be able to define Moray cylinders by their endpoints, and
the radius, like POV does.

Why? Consider wanting to connect the points 0,0,0 and 1,1,0 In moray, we
can create the cylinder, set the local coordinate rotation point to one
end, translate it so that that end rests on 0,0, rotate the cylinder by
45 degrees, then scale it by the root of 2 (using pythagoras, of
course). All well and good, only a little bit of math to be done.

What about connecting points 0,0,0 and 1,1,1? Now the rotation is a
little more complex (no big deal) and the scaling requires a bit more
math.

What about connecting points 1,2,8 and 3,8,13? Now, this gets much more
complicated. I know I can't tell offhand exactly what scaling and
rotation I would need...

I understand that this all can be done with math, but the purpose of
Moray is to get away from calculating, and simplify all matters. And
since this is how POV handles cylinders anyways, it would be almost
trivial to implement (or so I assume :)

Simon
http://home.istar.ca/~sdevet


Post a reply to this message

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