POV-Ray : Newsgroups : povray.general : 2D function to 3D tube : Re: 2D function to 3D tube Server Time
26 Apr 2024 14:07:52 EDT (-0400)
  Re: 2D function to 3D tube  
From: Bald Eagle
Date: 23 Dec 2022 15:25:00
Message: <web.63a60e2c560d61681f9dae3025979125@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:

> I'm confident that this is a solvable problem.


As I said.   Success!   :)

Looks like all you have to do is change these two lines:

I got the atan to give me a "clean" curve, but it was really skinny.   "maybe
that's just rotated 90 deg from what it should be...?
So I got rid of the pi/2.  No idea _why_ that works...   yet.


#declare PHI = function (u) {-atan2( FdY(u), FdX(u) ) + pi/2*0};

#declare F1 = function(u,v) {QY(v)*sin(PHI(u)) + FX(u)};


Post a reply to this message


Attachments:
Download 'tube_heartcurve.png' (46 KB)

Preview of image 'tube_heartcurve.png'
tube_heartcurve.png


 

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