POV-Ray : Newsgroups : povray.general : Convert string identifier to object name Server Time
30 Jul 2024 08:24:47 EDT (-0400)
  Convert string identifier to object name (Message 11 to 12 of 12)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Warp
Subject: Re: Convert string identifier to object name
Date: 2 Nov 2009 11:37:50
Message: <4aef0add@news.povray.org>
Thomas de Groot <tDOTdegroot@interdotnlanotherdotnet> wrote:
> #local PoserName = "Beggar_";
> #include concat(PoserName, "POV_geom.inc")
> #local ObjName = object {PoserName}

  What does the include file contain, specifically? If it contains a "raw"
object, you could also do this:

#local Obj = object { #include "include_file" };

  Works only if the include file can be inserted there and the result is valid
SDL, of course.

-- 
                                                          - Warp


Post a reply to this message

From: Thomas de Groot
Subject: Re: Convert string identifier to object name
Date: 3 Nov 2009 03:44:06
Message: <4aefed56$1@news.povray.org>
"Warp" <war### [at] tagpovrayorg> schreef in bericht 
news:4aef0add@news.povray.org...
> Thomas de Groot <tDOTdegroot@interdotnlanotherdotnet> wrote:
>> #local PoserName = "Beggar_";
>> #include concat(PoserName, "POV_geom.inc")
>> #local ObjName = object {PoserName}
>
>  What does the include file contain, specifically? If it contains a "raw"
> object, you could also do this:
>
> #local Obj = object { #include "include_file" };
>
>  Works only if the include file can be inserted there and the result is 
> valid
> SDL, of course.
>

In the specific case of a geometry file for a Poser figure generated by 
Poseray, this does not work (I tried). The file contains first a collection 
of different mesh2's, all assembled into a union at the end, like this:

//Model assembly from the meshes
#declare Beggar_=
union {
object {......}
object {......}
object {......}
....etc
}

Thomas


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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