POV-Ray : Newsgroups : povray.general : request for pigment help : Re: request for pigment help Server Time
30 Jul 2024 16:18:08 EDT (-0400)
  Re: request for pigment help  
From: Mike Williams
Date: 26 Oct 2008 18:54:36
Message: <zGPz2+HvTPBJFwAz@econym.demon.co.uk>
Wasn't it Leef_me who wrote:
>
>I want to apply a color map to a torus so that the maps are applied as wedges
>when viewing a cross-section of the torus.
>(I think this would be radially, but I am unsure.)
>
>Can some give me a simple example of this?

Use map_type 5.

Create your torus with major axis equal to 1, because that's where the 
map_type 5 pigment radiates from, then scale it to the size you require 
after applying the pigment.


difference {
   torus {1, 0.6}
   box {<0,-1,-2> <2,1,0>}
   pigment {
     image_map {jpeg "test.jpg" map_type 5}
   }
   scale 4
}

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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