POV-Ray : Newsgroups : povray.programming : puzzling it out : Re: puzzling it out Server Time
28 Jul 2024 10:16:06 EDT (-0400)
  Re: puzzling it out  
From: Le Forgeron
Date: 28 May 2002 02:51:16
Message: <3CF3291B.8010701@free.fr>
Marc M. Adkins wrote:

> Someone please correct me if I'm wrong...
> 
> There are no flags on the basic objects (e.g. Sphere) that differentiate one
> from another.  The only way to tell one from another is the method pointers
> attached to the objects when they're initialized.  Or to look at it another
> way, you can poke them and see which way they run, but they don't have
> nametags.


Correct.
There is no need for nametags because the memory representation of objects
in the world/scene is write-only for the parser.
(With the exception of #declare/#local which allow to give a name to
a template object which might be later instancied with object{...} )

Nametags are only usefull in modelers.

Same goes for a Class identifier: it is not useful because it is done
by the method pointer.
-- 
Non Sine Numine
http://grimbert.cjb.net/
Puis, s'il advient d'un peu triompher, par hasard,






Post a reply to this message

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