POV-Ray : Newsgroups : povray.binaries.utilities : PointWriter: New app for making spline-based shapes easily : Re: PointWriter: New app for making spline-based shapes easily Server Time
26 Apr 2024 06:36:38 EDT (-0400)
  Re: PointWriter: New app for making spline-based shapes easily  
From: Nevado
Date: 11 Oct 2014 03:25:00
Message: <web.5438d8089ace5296dce1a360@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> I'm going to post this code WIP just to get it out there.
> It doesn't really work - but the structure of the code is "linearized".
> (To the extent that I could puzzle things out)
> (You don't wanna see the flowchart I made in VISIO...)
> Gotos and gosubs are like lotus flowers.  I saw those and instantly fell into
> some "But how would I do it _without_ that...?!" dreamscape.
> Luckily I've done enough C++ coding on an Arduino with functions and subroutines
> calls to see what I might do to escape that siren call.
>
> Check out what I did with the SNAP function. - Major changes.
> Also, I have file-presence checking for things like the Model.bmp
>
> I have too many balls in the air at the moment, including some pending nasty
> stuff IRL.
>
> Adding a new point to an existing spline ought to work something like selecting
> an existing point, and then clicking where the new point should appear in the
> spline list AFTER that.  Then you just store that point, and run a loop through
> the list.  If all the points have a number, then it just becomes a standard
> sorting routine.

Thanks for all your hard work optimizing my code. I'm not ready to upload
anything new yet, but you at least deserve an answer.

The Snap optimization looks smart. A check for file presence was implemented in
my version 1.3. And I have had some thoughts about an Insert function along the
same lines as yours. I'll take a closer look at your suggestions.

Right now I'm working on a display of cubic curves, and I agree with you that
it should be possible in JustBasic. It requires the solving of a third-degree
polynomial for every line segment. The biggest hurdle seems to be sharp changes
in curve direction. When (and if!) I find a solution, I'll get back.


Post a reply to this message

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