POV-Ray : Newsgroups : povray.general : Random thoughts about povray and xml : Re: Random thoughts about povray and xml Server Time
2 Nov 2024 11:26:54 EDT (-0400)
  Re: Random thoughts about povray and xml  
From: Christopher James Huff
Date: 20 Mar 2004 14:04:53
Message: <cjameshuff-EE45D7.14050220032004@news.povray.org>
In article <Xns94B1DBBA41E8ZenZenPsychocom@203.29.75.35>,
 Breton Slivka <Zen### [at] ZenPsychocom> wrote:

> <if value="true">
> <box a="1", b="-1"><pigment><color r="1"/></pigment></box>
> </if>

It'd be a bit more complex than that. Maybe something like:

<if>
    <condition>
        <equal>
            <lhs><varref identifier="foo"></lhs>
            <rhs><boolean value="true"></rhs>
        </equal>
or maybe:
        <compare type=equal lhs="foo" rhs="true">
    </condition>
    <then>
        <box x1="1" y1="1" z1="1" x2="-1" y2="-1" z2="-1">
            <plainpigment red="1"/>
        </box>
    </then>
</if>

This would be equivalent to:
#if(foo = true)
    box {< 1, 1, 1>, <-1,-1,-1>
        pigment {color red 1}
    }
#end

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tagpovrayorg>
http://tag.povray.org/


Post a reply to this message

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