POV-Ray : Newsgroups : povray.general : REQUEST: Macro fol Scaffold? : Re: REQUEST: Macro fol Scaffold? Server Time
18 May 2024 13:28:25 EDT (-0400)
  Re: REQUEST: Macro fol Scaffold?  
From: Thomas de Groot
Date: 29 Jul 2019 07:01:49
Message: <5d3ed21d@news.povray.org>
Op 29/07/2019 om 12:18 schreef Bald Eagle:
> 
> Sven Littkowski <wrt### [at] yahoocom> wrote:
>> Hi,
>>
>> I have a cylinder shape in my scene, but want to build a scaffold around
>> it of triangles. Is there any macro or formula that can do that, with me
>> specifying thickness of the scaffold poles and the size of the triangles?
>>
>> ---
>> Diese E-Mail wurde von AVG auf Viren geprüft.
>> http://www.avg.com
> 
> Easiest way would be to go around in a circle using r sin z and r cos x and make
> a regular polygon.  Step up the side of the cylinder and zig-zag up from your
> old polygon to where the new one will be.  Using an even number of sides will
> make finding the radius and doing the zig-zags easier I think.
> 
> Once you get that worked out, you can likely back-calculate to how large the
> triangles are and see if changing that will overcomplicate things.
> 
> 

Years ago, when I was a temporary resident of Gancaloon, I wrote series 
of macros to generate meshes fro a given heigh_field surface. I include 
the set here for your inspiration; no documentation is available 
however. ;-)

-- 
Thomas


Post a reply to this message


Attachments:
Download 'gridgen.mcr.txt' (9 KB)

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