POV-Ray : Newsgroups : povray.general : Splines : Re: Splines Server Time
27 Jul 2024 12:13:44 EDT (-0400)
  Re: Splines  
From: Josh English
Date: 12 Jul 2024 23:20:14
Message: <6691f26e$1@news.povray.org>
On 7/12/2024 1:53 AM, kurtz le pirate wrote:
> 
> Hello,
> 
> I'm now looking at splines and trying to understand how POVRay treats
> this object.
> 

Your understanding is correct. Here's an example with:
a) simpler coordinates
b) an array for tracking the indices.

It ain't pretty, but it works.

The points 0, 3, 6, and 9 are points on the curve.

Point 0 has control points 11 and 1
Point 3 has control points 2 and 4
Point 6 has control points 5 and 7
Point 9 has control points 8 and 10

Josh


Post a reply to this message


Attachments:
Download 'spline_question_answer.pov.txt' (2 KB) Download 'spline_question_answer.png' (8 KB)

Preview of image 'spline_question_answer.png'
spline_question_answer.png


 

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