POV-Ray : Newsgroups : povray.general : Dumb, Stupid, Ignorant geometry question. : Re: Dumb, Stupid, Ignorant geometry question. Server Time
13 Aug 2024 13:23:39 EDT (-0400)
  Re: Dumb, Stupid, Ignorant geometry question.  
From: Nieminen Mika
Date: 2 Sep 1998 12:03:26
Message: <35ed5e3e.0@news.povray.org>
Duane Tackett <ddt### [at] junocom> wrote:
:     Now that I have your attention (with the subject line) I have forgotten
: how to do something seemingly very basic:  I nee to translate a line segment
: into x,y coordinates.  What I need is a 5 sided regular polygon (pentagon in
: english) and I have forgotten the equation to convert this to x,y points.

#declare Point1=<1,0,0>;
#declare Point2=<cos(2*pi/5),sin(2*pi/5),0>;
#declare Point3=<cos(2*pi*2/5),sin(2*pi*2/5),0>;
#declare Point4=<cos(2*pi*3/5),sin(2*pi*3/5),0>;
#declare Point5=<cos(2*pi*4/5),sin(2*pi*4/5),0>;

-- 
                                                           - Warp. -


Post a reply to this message

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