POV-Ray : Newsgroups : povray.programming : Object oriented POV scene language? : Re: Object oriented POV scene language? Server Time
28 Jul 2024 12:26:47 EDT (-0400)
  Re: Object oriented POV scene language?  
From: Chris Huff
Date: 19 Jul 2000 10:56:31
Message: <chrishuff-C07324.09570319072000@news.povray.org>
In article <39747AD8.E2567B43@itam.cas.cz>, Vaclav Cermak 
<dis### [at] itamcascz> wrote:

>  just an idea: imagine, that POV language is object-oriented,
>  so for example sphere can be defined something like:
...
>  Any ideas?

This has been discussed many times, you might want to look at those 
discussions. There was one big one which started out in povray.general.

The biggest problem with your syntax is that it would require a complete 
redesign of the POV language, and everyone would have to re-learn it. 
This isn't necessary, object-oriented features could be added to the 
existing language, and still support old scenes and people writing in 
the older style. For one thing, the dot operator is already used to 
access the components of vectors and colors, it makes sense to use it to 
access member variables and macros. Much more sense than to use the 
"less than" operator.
A form of inheritance could be done by having every copy of an object 
get independant copies of its parent's members.

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

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