POV-Ray : Newsgroups : povray.binaries.images : Rotating isosurface cylinder : Re: Rotating isosurface cylinder Server Time
28 Apr 2024 14:50:39 EDT (-0400)
  Re: Rotating isosurface cylinder  
From: William F Pokorny
Date: 12 Oct 2016 03:51:22
Message: <57fdeb7a$1@news.povray.org>
On 10/11/2016 09:25 PM, StephenS wrote:
...
>
> Now my question;
> How do I rotate around y axis
> max(//reference edge good
>  sqrt(pow(y-Edge,2)+pow(z-Edge,2))-Block_Round_corner,
>  x-Inside_length,
>  -x+Inside_corner
> )
> I can substitute my z, but what do I use for my x?
>
>
> After trying some other stuff, I also have;
> sqrt(
>  pow(y-Edge,2)
>  +pow(z-Edge,2)
>
> +pow(x-select(min(x-Inside_length,0),max(x,Inside_corner),min(x,Inside_length)),2)
>
> )-Block_Round_corner
>
> Witch seems to give a cylinder with rounded ends.
> I can't seem to rotate this ether.
>
> Suggestions, hints?
>
> First image: my work so far on an isosurface rounded_cylinder_section.
> Second image: my cylinder with rounded ends equation.
>
> Stephen S
>
See too:

http://wiki.povray.org/content/Documentation:Tutorial_Section_3.2#Transformations_on_functions

Bill P.


Post a reply to this message

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