POV-Ray : Newsgroups : povray.general : printing object's identifier : Re: printing object's identifier Server Time
5 May 2024 08:08:07 EDT (-0400)
  Re: printing object's identifier  
From: jr
Date: 16 Mar 2016 20:32:03
Message: <56e9fb03$1@news.povray.org>
hi clipka,

On 16/03/2016 23:50, clipka wrote:

thanks for swift response.  this approach led to a different problem
(see below).  the macro is stored in its own file and meant to be
general purpose (to trace the outline of whichever object was passed via
ObjId), and I need both the object's name (for feedback and to populate
a field in the output), and the object to trace.  I'm now thinking,
given the below, it might be easier/better to supply both the name and
the identifier as separate arguments, do you concur?

jr.


#declare Tobj = torus { ... };
object { Tobj }
mymacro("Tobj")

#debug concat("id: ", ObjId)

Parse_String(ObjId)
#local bbox_min = min_extent(ObjId)

POV now fails on the min_extent since I'm passing it a string..


Post a reply to this message

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