POV-Ray : Newsgroups : povray.general : Brsuhing up on math - intersection sphere-cylinder : Re: Brushing up on math - intersection sphere-cylinder Server Time
8 Aug 2024 10:27:34 EDT (-0400)
  Re: Brushing up on math - intersection sphere-cylinder  
From: Remco de Korte
Date: 9 Jan 2001 09:00:04
Message: <3A5B189D.24C4A93F@onwijs.com>
Wlodzimierz ABX Skiba wrote:
> 
> Remco de Korte wrote in message <3A5A368B.D282D447@onwijs.com>...
> > > I have not tested it but I hope it'll help you
> > > Should be very interesting to write parametric equation for it
> > > to distribute evenly points on it
> >
> >
> > That's my next step. I think I can handle that but probably by approximation.
> 
> Look at it from the top (from y axis)
> 
> You can cross your shape with planes y-z rotated evenly around y axis
> 
> Now trace crospoints of shape and plane depend of angle of rotation
> 
> x^2 + y^2 + z^2 = R1^2
> x^2 + ( y - H )^2 = R2^2
> x = tg( alfa ) * z
> 
> this way you can achive parametric equation with parameter alfa (but it is
> complicated)
> 
> than you can use definite integral to calculate length of parametric curve
> and perhaps to find n points far length/n
> 
> ABX

This is way beyond the remains of my already limited capabilities, I'm afraid.
Thank you anyway.

With your and David's help I've managed to come up with something that actually
works!

Kind regards,

Remco


Post a reply to this message

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