POV-Ray : Newsgroups : povray.binaries.images : profile following a parametric curve : Re: profile following a parametric curve Server Time
18 May 2025 04:26:28 EDT (-0400)
  Re: profile following a parametric curve  
From: kurtz le pirate
Date: 2 May 2025 10:55:45
Message: <6814dcf1$1@news.povray.org>
On 02/05/2025 16:17, Chris R wrote:
> 
> Do you adjust the size of your profile object as you follow the curve, or does
> it just have a very tiny thickness at each t step?  When I use this technique, I
> struggle with getting the resulting object smooth if the curves are wide.
> 
> -- Chris R
> 


Hello Chris.

In fact, my profile has no thickness !
The profile is only defined by points in an a array and doesn't really 
exist.


For example, the profile for a triangle is defined like this:
#declare i = 0;
#while ( i < NumberOfVertices)
   #declare ShapePoints[i] = RotateX(<0, ShapeRadius, 0>, Angle*i);
   #declare i = i +1;
#end
The shape is in the y-z plane.

I position the first profile for t=0;

Then I calculate the position for the second (t=t+epsilon) and build 
triangles* that connect the two profiles.

* : using the true POV object : triangle { p0, p1, p2 }




-- 
kurtz le pirate
compagnie de la banquise


Post a reply to this message


Attachments:
Download 'parametrique_limacon de pascal _connect_prof0.png' (124 KB)

Preview of image 'parametrique_limacon de pascal _connect_prof0.png'
parametrique_limacon de pascal _connect_prof0.png


 

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