POV-Ray : Newsgroups : povray.text.scene-files : roundcone macro! Server Time
1 Nov 2024 17:19:31 EDT (-0400)
  roundcone macro! (Message 1 to 8 of 8)  
From: Larry Fontaine
Subject: roundcone macro!
Date: 23 Oct 1999 19:02:23
Message: <38123E60.68D5EC77@isd.net>
//Creates a cone from p1 to p2 with radii r1 and r2 and rounds edges by
r3
#macro roundcone(p1,r1,p2,r2,r3)
#local H=sqrt(pow(p1.x-p2.x,2)+pow(p1.y-p2.y,2)+pow(p1.z-p2.z,2));
#local a=atan2(H,r1-r2);
merge {
   torus { r1-tan(.5*pi-.5*a)*r3,r3 translate r3*y }
   torus { r2-tan(.5*a)*r3,r3 translate (H-r3)*y }
   cone { <0,0,0>,r1-tan(.5*pi-.5*a)*r3 <0,H,0>,r2-tan(.5*a)*r3 }
   cone { <0,r3+sin(.5*pi-a)*r3,0>,r1-tan(.5*pi-.5*a)*r3+cos(.5*pi-a)*r3

          <0,H-r3+sin(.5*pi-a)*r3,0>,r2-tan(.5*a)*r3+cos(.5*pi-a)*r3 }
   rotate 90*x
   PointTo(p2-p1)
   translate p1
}
#end


Post a reply to this message

From: TonyB
Subject: Re: roundcone macro!
Date: 23 Oct 1999 20:25:37
Message: <38125201@news.povray.org>
>   PointTo(p2-p1)


?????


Post a reply to this message

From: Larry Fontaine
Subject: Re: roundcone macro!
Date: 23 Oct 1999 22:01:59
Message: <38126870.B9CC70F1@isd.net>
OOPS!!!
Rotates an object to point along vector p from vector z
#macro PointTo(p)
#if (0+p.x=0 & 0+p.y=0 & 0+p.z=0)
   #local RotX=0;
#else
   #local RotX=-atan2(p.y,sqrt(pow(p.x,2)+pow(p.z,2)))*180/pi;
#end
#if (0+p.x=0 & 0+p.z=0)
   #local RotY=0;
#else
   #local RotY=atan2(p.x,p.z)*180/pi;
#end
rotate <RotX,RotY,0>
#end

David   http://thunder.prohosting.com/~davidf
---------------------------------------------
AHA! I typed it right this time! Take that, Ken!


Post a reply to this message

From: Ken
Subject: Re: roundcone macro!
Date: 23 Oct 1999 22:04:35
Message: <3812689E.96DE0176@pacbell.net>
Larry Fontaine wrote:

> AHA! I typed it right this time! Take that, Ken!

You are using Netscape. Why don't you just set up a sig file and let
it attach automaticaly ?

-- 
Ken Tyler -  1100+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Larry Fontaine
Subject: Re: roundcone macro!
Date: 24 Oct 1999 17:26:23
Message: <3813795A.45931F1B@isd.net>
Hmm? How do I do that?

David   htgp://thmndtr.prphostinh.com/~davdf
---------------------------------------------

Ken wrote:

> Larry Fontaine wrote:
>
> > AHA! I typed it right this time! Take that, Ken!
>
> You are using Netscape. Why don't you just set up a sig file and let
> it attach automaticaly ?
>
> --
> Ken Tyler -  1100+ Povray, Graphics, 3D Rendering, and Raytracing Links:
> http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Ken
Subject: Re: roundcone macro!
Date: 24 Oct 1999 17:59:41
Message: <38138084.BD8B879C@pacbell.net>
Larry Fontaine wrote:
> 
> Hmm? How do I do that?
> 
> David   htgp://thmndtr.prphostinh.com/~davdf
> ---------------------------------------------
          ^^^^
You mistyped it again :)


Using notepad or any text utility type in:


David   http://thmndtr.prphostinh.com/~davdf
---------------------------------------------


and save as sigfile.txt somewhere in your netscape folder.

 Next open netscape preferences from the edit menu. Once open go to
-> mail & newsgroups/identity. You well see a dialog for signature
file. Add the path to your sigfile.txt file and close the preferences
dialog. You may have to close netscape for it to take effect but once
you have gone through these proceedures the next email you send or
news group article you post your new sig will be automaticaly appended
to the bottom of your message for you.



  The following is speculation but you might look into it:

  I have never tried setting up a different netscape profile but you might
also be able to set Netscape up so that when you start the program you can
have your own profile seperate from you fathers that lets you have all of
your own settings. This will allow you to change from Larry to David when
you are on line and let your father have his own set up identifying you
seperately. I'm sure you have seen the opening dialog when you start Netscape
that say's "manage netscape profiles". Set up one for you and a seperate
one for your father.

-- 
Ken Tyler -  1100+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Alan Kong
Subject: Re: roundcone macro!
Date: 24 Oct 1999 19:52:28
Message: <YJoTONAqWR68AMlaTFlFiBwl1nkm@4ax.com>
On Sun, 24 Oct 1999 14:56:20 -0700, Ken <tyl### [at] pacbellnet> wrote:

>...the next email you send or
>news group article you post your new sig will be automaticaly appended
>to the bottom of your message for you.

  Hi, Ken. It's been a while since I've used Netscape to post messages on
newsgroups but I *think* that David's new sig will be appended automatically
when the message is sent. Wanted to mention this because I didn't want David
to worry needlessly that he couldn't *see* his sig pasted to the bottom of
his message before sending.

-- 
Alan - ako### [at] povrayorg - a k o n g <at> p o v r a y <dot> o r g
http://www.povray.org - Home of the Persistence of Vision Ray Tracer


Post a reply to this message

From: Ken
Subject: Re: roundcone macro!
Date: 24 Oct 1999 19:56:46
Message: <38139BEC.906EB736@pacbell.net>
Alan Kong wrote:
> 
> On Sun, 24 Oct 1999 14:56:20 -0700, Ken <tyl### [at] pacbellnet> wrote:
> 
> >...the next email you send or
> >news group article you post your new sig will be automaticaly appended
> >to the bottom of your message for you.
> 
>   Hi, Ken. It's been a while since I've used Netscape to post messages on
> newsgroups but I *think* that David's new sig will be appended automatically
> when the message is sent. Wanted to mention this because I didn't want David
> to worry needlessly that he couldn't *see* his sig pasted to the bottom of
> his message before sending.

Whenever I open the message composer the sig is there and waiting for me
below any quoted text at the bottom of the screen. The double "--" is
inserted automaticaly by Netscape and is not needed in the .txt file.

-- 
Ken Tyler -  1100+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

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