POV-Ray : Newsgroups : povray.pov4.discussion.general : change "object" keyword to something more explicit like "instance" : Re: change "object" keyword to something more explicit like "instance" Server Time
9 Oct 2026 08:45:50 EDT (-0400)
  Re: change "object" keyword to something more explicit like "instance"  
From: ingo
Date: 16 Aug 2026 02:27:06
Message: <6a81583a$1@news.povray.org>
On 2026-08-16 01:04, Mr wrote:
> "ingo" <nomail@nomail> wrote:
> writing:
> object{sphere<0,0,0>1}
> instead of
> sphere<0,0,0>1
> ....or is it just unintended side effects / syntax complexification that just got
> allowed by accident?


I.i.r.c. the object wrapper was not always there, it came later in the game.

---%<-----%<----%<---object{sphere{<0,0,0>,1}}

#declare S = object{sphere{<0,0,0>,1}}

S

object{S}

sphere{<0,0,0>,1}

#declare A = sphere{<0,0,0>,1}

A

object{A}
---%<-----%<----%<---

These all render fine. I see them as implicit and explicit forms of the 
same. I limit myself to use the explicit object, form when I want the 
object to be rendered.

---%<-----%<----%<---
#declare A = sphere{<0,0,0>,1}
object{A}
or
object{sphere{<0,0,0>,1}}
---%<-----%<----%<---

I would not be amazed if POV-Ray in the end wraps everything in object 
or equivalent before tracing.




ingo


Post a reply to this message

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