POV-Ray : Newsgroups : povray.advanced-users : Bezier spline deformation : Re: Bezier spline deformation Server Time
28 Mar 2024 11:54:32 EDT (-0400)
  Re: Bezier spline deformation  
From: Mike Miller
Date: 15 Mar 2023 00:15:00
Message: <web.6411456b122e7e3aa30d213ddabc9342@news.povray.org>
yesbird <sya### [at] gmailcom> wrote:
> On 14/03/2023 14:01, yesbird wrote:
> > while working on C4D->POV converter, I've discovered a strange form
> > deviation of prism, extruded from bezier spline (see attachment).
>
> And I should say, that for cubic spline I have the same distortion:
> > //----------------------------------------------------------------------------
> camera{ perspective
>  location  <0, 0, 0>
>  angle 53.130102
>
>    matrix
>   <0.999944, -0.000000, -0.010610,
>    0.010182, 0.281279, 0.959572,
>    0.002984, -0.959626, 0.281263,
>    -0.018327, 5.930451, -1.559761>
>
> }
>
> #declare Extrude = prism { linear_sweep cubic_spline 0, 1.000000, 7
>
>    <0.000000, -1.000000>
>    <1.500000, 0.000000>
>    <0.000000, 1.000000>
>    <-1.500000, 0.000000>
>    <0.000000, -1.000000>
>    <1.500000, 0.000000>
>    <0.000000, 1.000000>
>    matrix
>   <1.000000, 0.000000, 0.000000,
>    0.000000, 1.000000, 0.000000,
>    0.000000, 0.000000, 1.000000,
>    0.000000, 0.000000, 0.000000>
>
>    material { mat_default }
> }
>
> object{ Extrude }
> > //----------------------------------------------------------------------------

I'll take a look. Have you tried plotting those same points in another package?
...like AutoCAD or FreeCAD. Did you try adding a tolerance? I doubt it would
matter.
Mike


Post a reply to this message

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