POV-Ray : Newsgroups : povray.general : New interesting class of shapes to model : Re: New interesting class of shapes to model Server Time
7 Oct 2024 06:24:13 EDT (-0400)
  Re: New interesting class of shapes to model  
From: Ilya Razmanov
Date: 20 Sep 2024 14:12:56
Message: <66edbb28$1@news.povray.org>
On 20.09.2024 18:22, kurtz le pirate wrote:
> On 16/09/2024 09:39, Ilya Razmanov wrote:

> Ho, yes. Well know tricks
> Here, a "thingie plane" based on your object ;)

With recent update, I added a couple more presets using similar idea, 
like that one:


#local timerand = seed(int(now*100000)); // Seeding time  {#886600, 1}
#local a = 1.5;  // Overall offset factor, exceeding 2.0 may lead to 
weird effects

// Critical part:                                   {#880000, 2}
#declare of26 = <a * (rand(timerand) - 0.5), a * (rand(timerand) - 0.5)>;
#declare of48 = <a * (rand(timerand) - 0.5), a * (rand(timerand) - 0.5)>;

#declare thingie = prism{conic_sweep linear_spline -1, 0, 9,
  <-1, -1>, <0, -1> + of26, <1, -1>,
  <1, 0> + of48,
  <1, 1>, <0, 1> + of26, <-1, 1>,
  <-1, 0> + of48,
  <-1, -1>}

Funny thing is, it works :-)

-- 
Ilyich the Toad
https://dnyarri.github.io/


Post a reply to this message

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