POV-Ray : Newsgroups : povray.newusers : need help with parametric surface : Re: need help with parametric surface Server Time
14 May 2024 04:42:32 EDT (-0400)
  Re: need help with parametric surface  
From: FractRacer
Date: 13 Mar 2014 07:40:16
Message: <53219920@news.povray.org>
Hi Jr,

I have modified Ingo's file like this:
#declare Set=5;

// in switch block add:
#case (5)
#declare F1= function(u,v) 
{sin(pi*u)*(7.0+cos((pi*u/3.0)-(2.0*pi*v))+2.0*cos((pi*u/3.0)+(pi*v))) };
#declare F2= function(u,v) 
{cos(pi*u)*(7.0+cos((pi*u/3.0)-(2.0*pi*v))+2.0*cos((pi*u/3.0)+(pi*v))) };
#declare F3= function(u,v) { 
sin((pi*u/3.0)-(2.0*pi*v))+2.0*sin((pi*u/3.0)+(pi*v)) };
#break

// in object block add:
#if (Set=5)
Parametric(
	F1, F2, F3,
	<-pi, -pi>, < pi, pi>,
	50,50,""
)
#end

I remark your object have some holes on the borders, maybe you have to 
modify the formulas.

Lionel.
-- 
Do not judge my words, judge my actions.

---

parce que la protection avast! Antivirus est active.
http://www.avast.com


Post a reply to this message

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