POV-Ray : Newsgroups : povray.binaries.images : Isosurface cylindrical ramp?, cam lift hinge : Isosurface cylindrical ramp?, cam lift hinge Server Time
9 Aug 2024 09:07:13 EDT (-0400)
  Isosurface cylindrical ramp?, cam lift hinge  
From: StephenS
Date: 6 Mar 2005 11:41:45
Message: <422b32c9@news.povray.org>
I would like to add the cam part to my hinge. A ramp that wraps around the
pin. I'm thinking that a cylinder isosurface whose height changes with the
angle should work. Looking up the parts on f_ph and f_th don't seem to help
me understand them any better. I can get a cylinder but the change in height
is giving me a head ache. Some help would be appreciated :-)

Stephen

#include "functions.inc"
background { color <1.000,1.000,1.000> }

camera {
  location  <    -58.033,     -87.696,      83.175>
  sky       <    0.00000,     0.00000,     1.00000>
  up        <        0.0,         0.0,         1.0>
  right     <    1.33343,         0.0,         0.0>
  angle          2.56896
  look_at   <     -3.480,      -4.962,       4.713>
}

light_source {
  <0.0, 0.0, 0.0>
  color rgb <1.000, 1.000, 1.000>
  translate  <-65.474138, -85.344511, 105.18157>
}

#local fn_A=function{sqrt(x*x+ y*y) - .5};
#local fn_B=function(z){abs(z)-.5};
isosurface {
   function {
      max(fn_A(x,y,z),fn_B(z))
   }
   contained_by {box{
    < -1, -1, -1>,
    <  1,   1,  1>}}
   threshold 0
   accuracy 0.01
   evaluate 1, 10, 0.99
   max_gradient 1
   max_trace 5

pigment{rgb .8}
}


Post a reply to this message


Attachments:
Download 'hinge_camlift.jpg' (8 KB)

Preview of image 'hinge_camlift.jpg'
hinge_camlift.jpg


 

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