POV-Ray : Newsgroups : povray.binaries.scene-files : OTOc.inc 'Odd Tiles Object' version 3 : Re: OTOc.inc 'Odd Tiles Object' version 3 Server Time
7 May 2024 07:02:27 EDT (-0400)
  Re: OTOc.inc 'Odd Tiles Object' version 3  
From: Alain
Date: 12 Aug 2014 14:14:06
Message: <53ea596e@news.povray.org>

> Am 07.06.2011 21:14, schrieb stbenge:
>> Hi,
>>
>> This will create a wall consisting of irregularly-shaped rectangular
>> bricks.
>
> I'm wondering: Is there a reason the #include "shapes.inc" statement is
> part of the OTO_Object macro, thereby repeatedly including that file
> every time the macro is called?
>

The macro need something from shapes.inc and include it just in case.
The current #include statement should be replaced by:
#ifndef( Shapes_Inc_Temp ) #include "shapes.inc" #end

That way, if shapes.inc is already included, there will be no attempt to 
reinclude it.
This will improve performances. You'll no longer need to open the file 
and reat it all just to skip almost all of it's content.



Alain


Post a reply to this message

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