POV-Ray : Newsgroups : povray.newusers : Prism Problem : Re: Prism Problem Server Time
26 Apr 2024 13:50:56 EDT (-0400)
  Re: Prism Problem  
From: Le Forgeron
Date: 19 Apr 2016 13:48:00
Message: <57166f50$1@news.povray.org>
Le 19/04/2016 15:58, clipka a écrit :
> Am 18.04.2016 um 18:52 schrieb Le_Forgeron:
> 
>> Prism can have more than one loop/fold.
>>
>> I can reproduce the issue with :
>>
>> #declare P0=<0,0>;
>> #declare P1=<1,0>;
>> #declare P2=<2,1>;
>> #declare P3=P1;
>> #declare P4=<4,1>;
>> #declare P5=<5,0>;
>>
>> prism{cubic_spline 0, 1, 7, P0, P1, P2, P3, P4, P1, P5}
>>
>> Notice that the problem is between the keyboard and the chair:
> 
> Hm... I don't think it's that easy. A reasonable case can be made for
> single loops with coincident control points; think e.g. of an hourglass
> shape in an animation, where the narrow portion is supposed to reach
> zero in one frame. The case is even easier to make for Bezier splines.
> 
> So I think we should consider this a flaw in the prism syntax, and think
> of how this could be remedied.

It's only the first point of the curve which is special.

If you expect the prism to have a concentration of points, do not choose that region
for the first point.


Post a reply to this message

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