POV-Ray : Newsgroups : povray.advanced-users : Multi-usage of an object : Re: Multi-usage of an object Server Time
28 Jul 2024 10:20:19 EDT (-0400)
  Re: Multi-usage of an object  
From: McHannemann
Date: 20 May 2006 01:50:01
Message: <web.446eadd0f11d153f92b08d80@news.povray.org>
> The idea of reusing an object with little additional memory cost relates
> to objects that themselves have components such as the mesh{} object and
> the blob{} object.  But the initial declaration of a mesh{}, say, will
> require lots of memory if it is comprised of many triangles.  However
> once declared, it can be instanced multiple times without additionally
> multiplying the memory needs.
> IE.
> #declare M =
> mesh {
>      triangle {...},
>      triangle {...},
>      ...
>      triangle {...}
> };
>
> LOOP
>      object { M transform {...} }
> END LOOP
>
>
> BUT
> This effect cannot be achieved by unioning a group of objects:
>
> #declare U =
> union {
>      triangle {...},
>      triangle {...},
>      ...
>      triangle {...}
> };
>
> LOOP
>      object { U transform {...} }
> END LOOP
> would multiply the memory cost


ok so if I have a object consistent of several parts I do normally union
to move them around, I need to not union them and move them all seperate
right?

REgards,
THor


Post a reply to this message

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