I'm making a scene just to learn macros and I've already run into some
trouble. Here is my code:
object {Cheerio
translate VRand_In_Object(area, RdmA);
}
I get an undeclared identifier at VRand_In_Object. Why? I have rand.inc
included. How come VRand_In_Object doesn't work?
Corey
Corey Woodworth wrote:
> > I'm making a scene just to learn macros and I've already run into some> trouble. Here is my code:> > object {Cheerio> translate VRand_In_Object(area, RdmA);> }> > I get an undeclared identifier at VRand_In_Object. Why? I have> rand.inc included. How come VRand_In_Object doesn't work?
The macro is named VRand_In_Obj in the .INC file.
You also don't need the semicolon where you have it.
Regards,
John
--
Rusty is rendering!
From: Corey Woodworth
Subject: Re: Macro Help
Date: 20 Mar 2002 14:49:16
Message: <3c98e7bc@news.povray.org>
"John VanSickle" <van### [at] topsurfcom> wrote in message
news:3C98E3C0.D4816E66@topsurf.com...
> Corey Woodworth wrote:> >> > I'm making a scene just to learn macros and I've already run into some> > trouble. Here is my code:> >> > object {Cheerio> > translate VRand_In_Object(area, RdmA);> > }> >> > I get an undeclared identifier at VRand_In_Object. Why? I have> > rand.inc included. How come VRand_In_Object doesn't work?>> The macro is named VRand_In_Obj in the .INC file.
Thanks! In 7.12.1 it is listed as VRand_In_Object! Where should I report
this?
> You also don't need the semicolon where you have it.
woops :)
Corey
I posted my fool code in p.t.s-f I'm making this scene just so I can learn
about macros. I have a few questions. How come the cheerios are alwawys
contained within what looks like a square even though I'm useing a disc in
VRand_In_Obj? Also how can I
get the look to make sure the ceerios don't overlap?
Thanks,
Corey
In article <3c98eab5$1@news.povray.org>,
"Corey Woodworth" <cdw### [at] mpinetnet> wrote:
> I posted my fool code in p.t.s-f I'm making this scene just so I can > learn about macros. I have a few questions. How come the cheerios are > alwawys contained within what looks like a square even though I'm > useing a disc in VRand_In_Obj? Also how can I get the look to make > sure the ceerios don't overlap?
It's because you are using a disc. VRand_In_Obj() returns points
*inside* the object, discs don't have an inside (they are infinitely
thin) so it makes several attempts (specifically, 1000 attempts) before
eventually giving up and generating a point inside the bounding box of
the disc. The documentation specifically mentions that this macro only
works on solid objects. If you use a short cylinder, it will work.
--
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/