POV-Ray : Newsgroups : povray.binaries.utilities : PointWriter: New app for making spline-based shapes easily Server Time
25 Apr 2024 02:12:59 EDT (-0400)
  PointWriter: New app for making spline-based shapes easily (Message 11 to 20 of 28)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 8 Messages >>>
From: Nevado
Subject: Re: PointWriter: New app for making spline-based shapes easily
Date: 15 Sep 2014 05:35:02
Message: <web.5416b1289ace5296dce1a360@news.povray.org>
Le_Forgeron <lef### [at] freefr> wrote:
> Le 14/09/2014 14:04, Nevado a écrit :
> > Thanks to Bald Eagle for pointing out some bugs in my 1.0 version of
> > PointWriter.
> > This version 1.1 has the following fixes:
> >
> > * Object points tend to blend in with connecting lines. Points are made larger.
> > * Background image disappears when writing points. Subroutine jump corrected.
> > * Drawn objects disappear when editing while using background image. Subroutine
> > jump corrected.
> >
> It looks great... can we have it in Java for a system-independent solution ?


Glad you like it! Alas, I haven't learned Java (at least not yet.) If a good
programmer feels up to the task of translating it, my code is available in the
..zip file.


> The idea of intersecting two prisms never hit me before, yet so obvious!
>
> I want it! (but I'm not on Windows at home :-/ )
>
> --
> Just because nobody complains does not mean all parachutes are perfect.


Post a reply to this message

From: Bald Eagle
Subject: Re: PointWriter: New app for making spline-based shapes easily
Date: 15 Sep 2014 13:55:01
Message: <web.541727d09ace5295e7df57c0@news.povray.org>
I'm still playing around with this to appreciate Christian's workflow, see
what's possible with this JustBasic language (looks like a fair amount), and see
if there's some neat goodies that can be added at some point.

Do we have the equations for how POV-Ray handles interpolation of cubic splines
handy?  That would be a sweet feature to add.

I'll likely be using this along with EPSpline for some tc-rtc work, so I'm sure
I'll give it a good workout over the next month or so.

I'd like to make some decent furniture - Queen Anne table legs, etc.  Prisms get
me the rough outline, but maybe someone could offer some advice on how to
elaborate further on that to get a nice, sculpted shape.  It might inspire
further developments.  :)   Thanks.


Post a reply to this message

From: Nevado
Subject: Re: PointWriter: New app for making spline-based shapes easily
Date: 17 Sep 2014 11:35:01
Message: <web.5419a8a19ace5296dce1a360@news.povray.org>
Version 1.2 with a few enhancements:

* You can now switch outline color for your shape at any time with the keys 3,
4, 5, 6, 7 and 8. Choose between gray, red (default), blue, black, yellow or
green. Points will remain red.

* You can use those same keys and outline colors for your "Work in Back" shape.
Just hold down "Shift". Points will remain black.

* Shapes can now be nudged left, up, down and right with Function keys 1-4 in
steps of 0.1 units instead of 0.25.

* When choosing a "Write" option or saving work, you now get confirmation at the
bottom of the screen.

* "PointWriterHelp.txt" is updated with these changes.


Post a reply to this message


Attachments:
Download 'pointwriter.zip' (1221 KB)

From: Nevado
Subject: Re: PointWriter: New app for making spline-based shapes easily
Date: 27 Sep 2014 10:15:01
Message: <web.5426c4ea9ace5296dce1a360@news.povray.org>
Version 1.3 with some new user-friendly features:

* Every time you close PW down, your settings for Grid, Snap, CenterX, CenterY
plus your chosen outline colors for Work and Work in Back shapes are now saved
to the file "Settings.txt". Next time you start up, your settings will be
restored.

* When you use Work in Back to create a new shape on top, the file "Work.txt"
with the background shape is overwritten when you save the new one. In case you
want to keep the background shape, "Work.txt" is now automatically copied to the
file "WorkBack.txt" when you use Work in Back. (You still have to rename the
copy "Work.txt" before you can reload it.)

* In addition to the F1 to F4 keys for nudging your shape 0.1 unit left, up,
down and right, you can now use F5 to F8 for moving it one whole unit in each
direction. This also means that when you trace images for lathe shapes, the
template for precise image placement in relation to the Y-axis becomes
unnecessary. You can just trace the outline anywhere on screen and move it in
place along the Y-axis before writing it as a lathe shape.

* A couple of new shape outline colors, only accessible by keyboard: "3" for
dark gray (Shift-3 for Work in Back shape) and "9" for pink (Shift-9 for Work in
Back shape.)

* Trying to open a non-existent file will now just generate a warning and let
you continue, not crash the program.

* "PointWriterHelp.txt" and "READ_ME.txt" is updated with these changes.


Post a reply to this message


Attachments:
Download 'pointwriter.zip' (1208 KB)

From: Nevado
Subject: Re: PointWriter: New app for making spline-based shapes easily
Date: 4 Oct 2014 11:30:01
Message: <web.543012159ace5296dce1a360@news.povray.org>
Version 1.4 with improved file handling options:

* "Save work" will now open a dialogue box, let you choose a name for your work
file and save it anywhere you want.
Keyboard shortcut: "s" (lower case).
* You can also do a "fast save" by pressing "S" (upper case). Your work will be
saved as "Backup.txt", skipping the dialogue box.

* "Reload work" will now open a dialogue box, let you select any work file and
open it for editing.
Keyboard shortcut: "r" (lower case).
* You can also do a "fast reload" by pressing "R" (upper case). "Backup.txt"
will be reloaded, skipping the dialogue box.

* "Work in back" will now open a dialogue box, let you select any work file and
place the contents as background.
Keyboard shortcut: "a" (lower case).
* You can also do a "fast work in back" by pressing "A" (upper case).
"Backup.txt" will be placed as background, skipping the dialogue box.

* "'Model.bmp'" will now open a dialogue box and let you select any bitmap image
regardless of name and place it as background. The image still needs to keep the
proportions 4:3 to avoid distortion.
Keyboard shortcut: "m" (lower case).
* You can also do a "fast bitmap in back" by pressing "M" (upper case).
"Model.bmp" will be set as background, skipping the dialogue box (provided you
have named your bitmap "Model.bmp" and placed it in the PointWriter folder).

* With all other keyboard shortcuts than these four, upper and lower case
letters will have the same effect.

* "PointWriterHelp.txt" and "READ_ME.txt" are updated with these changes.


Post a reply to this message


Attachments:
Download 'pointwriter.zip' (1209 KB)

From: LanuHum
Subject: Re: PointWriter: New app for making spline-based shapes easily
Date: 4 Oct 2014 12:35:00
Message: <web.543020b79ace5297a3e03fe0@news.povray.org>
Sorry!
http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Curve/Curve_Tools


Post a reply to this message

From: Nevado
Subject: Re: PointWriter: New app for making spline-based shapes easily
Date: 5 Oct 2014 05:30:05
Message: <web.54310e519ace5296dce1a360@news.povray.org>
"LanuHum" <Lan### [at] yandexru> wrote:
> Sorry!
> http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Curve/Curve_Tools

I know. It would be great to have the cubic curves displayed as such instead of
as line segments.
I don't think that is possible in JustBasic. At the very least, it would require
a complete rewrite of the program and the introduction of equations I can't even
begin to imagine.

On the upside, making test renders of your cubic shapes in POV-Ray to see the
curves is very easy with PointWriter. Click shape, Ctrl+V into your POV-Ray
scene, "Run."


Post a reply to this message

From: Bald Eagle
Subject: Re: PointWriter: New app for making spline-based shapes easily
Date: 5 Oct 2014 15:55:00
Message: <web.5431a1b09ace5295e7df57c0@news.povray.org>
> It would be great to have the cubic curves displayed as such instead of
> as line segments.
> I don't think that is possible in JustBasic. At the very least, it would require
> a complete rewrite of the program and the introduction of equations I can't even
> begin to imagine.

I think that it's absolutely possible, it's just a matter of knowing exactly
what the specific equations are that POV-Ray uses to interpolate, so that the
curve displayed in JustBasic will be the same as that rendered.

I'm glad that you've been keeping up with this, as I think it's an excellent
little utility, and not only works well, but has great potential for
improvement.

I haven't had much time lately to work on the code, but I have made some
modifications which were partially for my benefit to improve readability of the
code, and other "improvements" such as "linearizing" things to get rid of gotos
and gosubs, writing some subroutines and functions, and working out some
algorithms that replace a lot of (IMO) unnecessary code.

It's still really messy since I'm in the midst of unraveling what does what and
where it needs to be, but hopefully I'll have enough time and motivation to
hammer out a rough working version that you can look at and get an idea of what
I've been playing with.

Thanks again for adding the extra features, and maybe if we can get the cubic
spline equations, we can see if there's a way to make them work in JustBasic.
:)


Post a reply to this message

From: Bald Eagle
Subject: Re: PointWriter: New app for making spline-based shapes easily
Date: 6 Oct 2014 10:35:00
Message: <web.5432a8099ace5295e7df57c0@news.povray.org>
http://mathworld.wolfram.com/CubicSpline.html


This might help shed some light on the method, in case anyone cares to elaborate
on Catmull-Rom splines.  (AND I'm really not all that great [read: suck] at
doing matrix math)
http://news.povray.org/povray.general/message/%3C34EA8144.4D7A8113%40dhol.com%3E/#%3C34EA8144.4D7A8113%40dhol.com%3E

http://en.wikiversity.org/wiki/Cubic_Spline_Interpolation

and a spreadsheet found by searching

      cubic spline excel spreadsheet

https://newtonexcelbach.wordpress.com/2012/10/08/daily-download-22-splines-and-curves/

I've not quite finished with Coffee #1, so it will take some time to wrap my
grey(ing) matter around all the pretty symbols...  :)


Post a reply to this message

From: Tor Olav Kristensen
Subject: Re: PointWriter: New app for making spline-based shapes easily
Date: 6 Oct 2014 18:50:01
Message: <web.54331bcb9ace5297b9c043a0@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> > It would be great to have the cubic curves displayed as such instead of
> > as line segments.
> > I don't think that is possible in JustBasic. At the very least, it would require
> > a complete rewrite of the program and the introduction of equations I can't even
> > begin to imagine.
>
> I think that it's absolutely possible, it's just a matter of knowing exactly
> what the specific equations are that POV-Ray uses to interpolate, so that the
> curve displayed in JustBasic will be the same as that rendered.
....

See this thread for some relevant POV-Ray SDL code:

Newsgroup: povray.binaries.scene-files
Subject: Making functions for natural cubic splines
From: Tor Olav Kristensen
Date: 6th Oct 2014
http://news.povray.org/povray.binaries.scene-files/thread/%3Cweb.54331726f5851fad7b9c043a0%40news.povray.org%3E/


I don't know JustBasic, but it might be possible to make something similar with
it.

--
Tor Olav
http://subcube.com


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 8 Messages >>>

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