POV-Ray : Newsgroups : povray.general : Make an Inc file : Re: Make an Inc file Server Time
2 Aug 2024 10:20:10 EDT (-0400)
  Re: Make an Inc file  
From: Mark Ulrich
Date: 4 Nov 2004 15:50:01
Message: <web.418a9543cdbd642aa3009e2a0@news.povray.org>
"wap### [at] hotmailcom" <wap### [at] hotmailcom> wrote:

> But I would like the box to be an inc file and then call it in the code
> like this:
>
> -code-
> #include "box.inc"
> object{ box }
> -/code-
>
> How can I do this?

Hi,

#declare mytest =
union {
#include "temp/object0.pov"
}

object {
 mytest
 rotate    < 0    , 0    , 0    >
 translate < 0    , 0    , 0    >
 scale     < 1    , 1    , 1    >
}

This throws out a warning, because the union consists of just 1 object, but
it renders.
I have to search in the documentation for the correct way, if you find
something before me, please post your result :)

Greets, Mark


Post a reply to this message

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