POV-Ray : Newsgroups : povray.programming : combining isosurface and CSG : Re: combining isosurface and CSG Server Time
24 Apr 2024 17:55:07 EDT (-0400)
  Re: combining isosurface and CSG  
From: clipka
Date: 13 Jan 2009 10:15:00
Message: <web.496caf22de71377ff15adb2a0@news.povray.org>
"Reiner Jung" <nomail@nomail> wrote:
>   isosurface {
>     function{ f_helix1( x,y,z,
>    1,    // number of helixes, (1 = single helix, 2 = double helix etc.)
>    (2*pi)/incline,   // period,      turns on the length of 2*pi
>    incline*2, // minor radius,
>    nominal, // major radius,
>    1,    // shape parameter,
>    2.0,  // cross section type,
>          // (0.0 to 1.0 = square ... rounded to circle
>          // over 2.0 to 3.0 = rounded to diamond and concave diamond
>    0 )   // cross section rotation angle
>     }
>     contained_by {box { -length/2 , length/2 }}
>     ...

Check the settings for the contained_by box; as it is now, it only works if the
nut's total radius (including thread) is smaller than length/2.

Note that POV-Ray automatically expands scalar values to vectors where needed,
so your contained_by box actually is:

contained_by {box { <-length/2,-length/2,-length/2>,
<length/2,length/2,length/2> }}

You probably want something like:

contained_by {box { <-nominal-incline*2, -length/2, -nominal-incline*2>,
<nominal+incline*2, length/2, nominal+incline*2> }}


Post a reply to this message

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