POV-Ray : Newsgroups : povray.newusers : Artefact in lathe object using hollow and interior media emission : Re: Artefact in lathe object using hollow and interior media emission Server Time
18 Apr 2024 15:13:51 EDT (-0400)
  Re: Artefact in lathe object using hollow and interior media emission  
From: nj
Date: 20 Jan 2021 05:15:00
Message: <web.600801fe35b6182be45c73b20@news.povray.org>
Thanks a lot! That brings me closer to understanding the problem :)

I still have trouble converting it into a working solution for the spline that I
actually want. So, if you don't mind, here's another -- less minimal -- example:


#version 3.7;

camera {
  location  <-1, 2, -4>
  look_at   <-0, 0, 0>
}

lathe {
    cubic_spline
    7,
    <0, -20>, <1, -20>,
    <0.5, -10>, <0.1, 0>, <0.5, 10>,
    <1, 20>, <0, 20>

    hollow
    pigment { rgbf 1 }
    interior { media { emission <1, 1, 1> } }

    rotate <0, 0, 90>
}


What I still don't quite get is this: Why is the problem occurring where it
occurs? Or better -- if it's solvable by inserting more points -- how do I know
where to insert them?

Also, I would need to know where on the spline the inserted points need to be.
For the cylinder, this was trivial. Now, I could calculate values on a spline
(for instance, using scipy.interpolate.spline) and insert those. But I haven't
really wrapped my mind around this idea, since I'd assume the spline algorithm
in povray would do exactly the same already!?


Post a reply to this message

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