POV-Ray : Newsgroups : povray.binaries.images : profile following a parametric curve Server Time
5 May 2025 17:04:14 EDT (-0400)
  profile following a parametric curve (Message 11 to 11 of 11)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Chris R
Subject: Re: profile following a parametric curve
Date: 5 May 2025 09:35:00
Message: <web.6818bddb174259623a6dfc485cc1b6e@news.povray.org>
kurtz le pirate <kur### [at] freefr> wrote:
> 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

Thanks for the explanation.  My brain is so focused on isosurfaces and
extrusions that I didn't even think of using triangles or a mesh.

-- Chris R


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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