POV-Ray : Newsgroups : povray.general : Doing data-visualization...But HowTo do it ??? : Re: Doing data-visualization...But HowTo do it ??? Server Time
9 Aug 2024 13:26:27 EDT (-0400)
  Re: Doing data-visualization...But HowTo do it ???  
From: Chris Huff
Date: 16 Jul 2000 17:48:07
Message: <chrishuff-4C2D1E.16483616072000@news.povray.org>
In article <397220e1@news.povray.org>, "Jan Walzer" 
<wal### [at] informatikuni-hallede> wrote:

> Can't I limit a cylinder to some degrees to use ???

An isosurface seems a bit extreme for this...just use an intersection or 
difference with a cylinder and 2 planes to create a wedge shape. You 
could then translate the wedge away from the axis to separate the 
"slice" from the others.
A macro like this should work: (untested!)

#macro PieWedge(minAngle, maxAngle, Radius, Thickness, Separation, Tex)
    difference {
        cylinder {< 0, 0, 0>, < 0, Thickness, 0>, Radius}
        plane {-x, 0 rotate y*(maxAngle - minAngle)/2}
        plane {x, 0 rotate -y*(maxAngle - minAngle)/2}
        texture {Tex}
        translate z*Separation
        rotate y*(minAngle + (maxAngle - minAngle)/2)
    }
#end

The parameters:
minAngle and maxAngle specify the angles where the wedge begins and 
ends; Radius specifies the radius of the wedges, Thickness specifies the 
height of the wedge, Separation controls the distance the wedge is moved 
from the center, and Tex is the texture.

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

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