POV-Ray : Newsgroups : moray.win : Cube.lua plugin Server Time
15 Jun 2024 09:25:06 EDT (-0400)
  Cube.lua plugin (Message 1 to 10 of 10)  
From: StephenS
Subject: Cube.lua plugin
Date: 28 Sep 2003 18:55:06
Message: <3f7766ca@news.povray.org>
I have started a plugin to allow the use for fractions to define the size
and transformations of a box() object.
It can be found linked from
http://ca.geocities.com/morayplugin/
Cube1a.zip is about 5k
The scale and shear internal transformations are incomplete.
Comments welcome.

If the general idea of entering numbers into a 'text box' is appealing, I
may extend this to some of my other plugins.

Stephen


Post a reply to this message

From: leseur sylvain
Subject: Re: Cube.lua plugin
Date: 29 Sep 2003 11:58:57
Message: <3f7856c1$1@news.povray.org>
Thanks Stephen.
But can you give us some exemples ?
Friendly
Sylvain


Post a reply to this message

From: StephenS
Subject: Re: Cube.lua plugin updated
Date: 29 Sep 2003 23:28:23
Message: <3f78f857@news.povray.org>
...
> Cube1a.zip is about 5k
> The scale and shear internal transformations are incomplete.
...
Cube1a1.zip is about 5k
Can now select 'list symbolic output' or 'list numeric output'.
scale fixed
shear internal transformations are incorrect for displayed wireframe.
Comments welcome.

Stephen


Post a reply to this message

From: StephenS
Subject: Re: Cube.lua plugin
Date: 29 Sep 2003 23:36:44
Message: <3f78fa4c@news.povray.org>
...
> But can you give us some exemples ?
...
Let me get the basic parts working first, then i'll make an example file.
The basic idea is to enter the start and finish points for a box(), default
is
box{<0,0,0>,<1,1,1>}. For example if you set 'finish x' to '5+3/32', the
plugin will output
box{<0,0,0>,<5+3/32,1,1>} for Povray.

Did this help?

Stephen


Post a reply to this message

From: StephenS
Subject: Re: Cube.lua plugin
Date: 2 Oct 2003 08:33:01
Message: <3f7c1afd@news.povray.org>
> I have started a plugin to allow ...
...

Cube1a2.zip now available.

The plugin has the following features:
   List symbolic output, displays a window with the code that will be output
to Povray. Simple expressions are maintained.
   List numeric output, displays a window with the code that is used to
display the wireframe. Simple expressions are evaluated to a single number.
   Simple expressions can be entered in 'text box', example 4+5.2-(16/3)
   Supported functions include:
+ - / *
sin(), cos(), tan(), asin(), acos(), atan2(),
abs(), exp, sqrt(),
ceil(), floor(), max(), min(), mod(),
   Indirectly supported are:
degrees(), radians(), ln(), log()

   Output is in the form of:
box {<x1,y1,z1>,<x2,y2,z2>
   (internal transformations)
scale
shear
rotate
translate
object flags (no_shadow...)
material
   (Moray transformations)
scale
rotate
translate
}

Comments welcome

Stephen


Post a reply to this message

From: Marc Jacquier
Subject: Re: Cube.lua plugin
Date: 2 Oct 2003 08:44:16
Message: <3f7c1da0$1@news.povray.org>

3f7c1afd@news.povray.org...
> > I have started a plugin to allow ...
> ...
>
> Cube1a2.zip now available.
>
Eeerrrrrr are you sure your link works?

Marc


Post a reply to this message

From: Philippe Gibone
Subject: Re: Cube.lua plugin
Date: 2 Oct 2003 12:41:06
Message: <3f7c5522@news.povray.org>
Salut Marc :

essaye : http://ca.geocities.com/morayplugin/Cube1a2.zip


pgb




news:3f7c1da0$1@news.povray.org...
>

> 3f7c1afd@news.povray.org...
> > > I have started a plugin to allow ...
> > ...
> >
> > Cube1a2.zip now available.
> >
> Eeerrrrrr are you sure your link works?
>
> Marc
>
>


Post a reply to this message

From: Marc Jacquier
Subject: Re: Cube.lua plugin
Date: 2 Oct 2003 13:31:39
Message: <3f7c60fb@news.povray.org>

3f7c5522@news.povray.org...
> Salut Marc :
>
> essaye : http://ca.geocities.com/morayplugin/Cube1a2.zip
>
>
Ah merci :)
oups I didn't even notice that the link pointed to version 1a1
Marc


Post a reply to this message

From: StephenS
Subject: Re: Cube.lua plugin
Date: 2 Oct 2003 18:23:43
Message: <3f7ca56f@news.povray.org>
...
> oups I didn't even notice that the link pointed to version 1a1
...

oops, will fix :-)

Stephen


Post a reply to this message

From: StephenS
Subject: Re: Cube.lua plugin
Date: 1 Dec 2003 15:42:38
Message: <3fcba7be@news.povray.org>
> I have started a plugin to allow...
...

Cube1a3.zip now available
includes Cube.lua and Sphere.lua(requires Cube1a3 or later)

Added a simple internal declare.
Anything before the first equal sign (=) will be replaced with anything
after the equal sign.
Substitution is in reverse order (last declared is applied first)
example:
m=*1
cm=/100
mm=/1000

2m+23cm+7mm
internally will be converted to (in steps)
2m+23cm+7/1000
2m+23/100+7/1000
2*1+23/100+7/1000
or
2.237

It's easy to confuse the plugin
mm=/1000
cm=/100
m=*1
from the previous example
2*1+23c*1+7*1*1
c is not a valid number, error!

There is reference to mesh2 and isosurface in the plugin, these are not
implemented yet.

Comments welcome

Stephen


Post a reply to this message

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