POV-Ray : Newsgroups : povray.binaries.scene-files : OTOc.inc 'Odd Tiles Object' version 3 Server Time
31 Oct 2024 18:57:20 EDT (-0400)
  OTOc.inc 'Odd Tiles Object' version 3 (Message 1 to 4 of 4)  
From: stbenge
Subject: OTOc.inc 'Odd Tiles Object' version 3
Date: 7 Jun 2011 15:14:33
Message: <4dee7899@news.povray.org>
Hi,

This will create a wall consisting of irregularly-shaped rectangular bricks.

New in this version:
	*support for custom brick types
	*trimmed edges
	*better variation

Enjoy~

Sam


Post a reply to this message


Attachments:
Download 'otoc.zip' (3 KB)

From: Paolo Gibellini
Subject: Re: OTOc.inc 'Odd Tiles Object' version 3
Date: 8 Jun 2011 04:31:03
Message: <4def3347$1@news.povray.org>
>stbenge  on date 07/06/2011 21:14 wrote:
> Hi,
>
> This will create a wall consisting of irregularly-shaped rectangular
> bricks.
>
> New in this version:
> *support for custom brick types
> *trimmed edges
> *better variation
>
> Enjoy~
>
> Sam

It seems good and fast.
;-)
Paolo


Post a reply to this message

From: clipka
Subject: Re: OTOc.inc 'Odd Tiles Object' version 3
Date: 12 Aug 2014 13:05:38
Message: <53ea4962@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?


Post a reply to this message

From: Alain
Subject: Re: OTOc.inc 'Odd Tiles Object' version 3
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.