POV-Ray : Newsgroups : povray.newusers : Lathe question : Re: Lathe question Server Time
30 Jul 2024 12:23:26 EDT (-0400)
  Re: Lathe question  
From: Stephen
Date: 9 May 2004 17:43:42
Message: <409ea60e@news.povray.org>
OK, here's what I learned about LATHEs today, connecting the inside and
outside, for the benefit of anyone else who wants to know.
The attached code segment isn't fancy but it does illustrate what I'm trying
to do, which, in the shortest description possible, is to
emulate the function of a wood lathe by subtracting a curve from a square
times n-length box (typical woodturning process).
Thanks to Daniel for nudging me in the correct direction.


// INSIDE curve of the approximately cylindrical object which I use to
difference from a box
#declare Red_Point    = < 0.70, 1.00>;
#declare Green_Point  = < 0.45, 2.50>;
#declare Orange_Point = < 0.95, 3.00>;

#declare Blue_Point   = < 1.00, 4.00>;

#declare Orange_Point2= < 0.95, 5.00>;
#declare Green_Point2 = < 0.45, 5.50>;
#declare Red_Point2   = < 0.70, 7.00>;

// OUTSIDE of the approximately cylindrical object is a straight line for
the "outside" which I don't care about
#declare Red3         = < 2.00, 1.00>;          // FOR TESTING, make all the
X = 0 so this straight line is in the center Y axis
#declare Green3       = < 2.00, 4.00>;        // and therefore all the other
points are greater which places the curves on the outside
#declare Blue3        = < 2.00, 7.00>;          // so they may be viewed.


#declare Lathe1 =
difference {

box { < -1, 0, -1>, <1, 8, 1> pigment {Blue}}

   lathe {
     bezier_spline
     12,
     Red3, Green3, Green3, Blue3                          // this is a
straight line for the "outside" which I don't care about
     Red_Point, Orange_Point, Green_Point, Blue_Point     // this is the
curve on the inside
     Blue_Point, Green_Point2, Orange_Point2, Red_Point2
     }

}

object {Lathe1}


Stephen


"Stephen" <pennyhedron at shaw dot ca> wrote in message
news:409e73cd$1@news.povray.org...
> I'm attempting to build a program in PV which will help me plan and design
> some woodturning projects, appropriately using the LATHE construction in
PV
> (as well as my wood lathe). This particular technique is called
"inside-out
> turning" where four identically square blanks or sticks are packed
together
> and turned on the lathe. Next, they are unbundled, and individually
rotated
> by the same amount, then packed back together.  If the rotation is 180
> degrees, then what was on the outside, is now on the inside and the new
> outside can be turned.
>
> My problem is in the learning curve to use the lathe construction. What I
> want is essentially a curve (any curve) on the inside of a cylinder.  I
> don't care about the outside, except the wall thickness should be
> substantial to eliminate any corners on the square object from which the
> lathe is differenced. I am currently not understanding the shape of the
> interior of the POV doc on lathe and  bezier_spline object.
>
> Can someone clarify the interior shape or suggest an alternate form of a
> hollow cylinder which has curves (coves and beads in woodturning lexicon)
on
> the inside?
>
>
>


Post a reply to this message

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