POV-Ray : Newsgroups : povray.bugreports : Symmetry not Working? Server Time
22 Nov 2024 03:14:55 EST (-0500)
  Symmetry not Working? (Message 1 to 2 of 2)  
From: Sven Littkowski
Subject: Symmetry not Working?
Date: 29 Mar 2015 05:20:00
Message: <web.5517c353429353c25189b500@news.povray.org>
Hey, I finally might have discovered a strange error:

When attempting to cut away areas of two parts, they don't equal each other!
Unless I miss some important detail (an error on my side) since some hours, I
think, the symmetry in POV-Ray 3.7 is compromised.

Here's the code:

#macro HullCommandFrontCutout(MyAmount,MySize,MyWidth,MyBegin,MyTexture)
union
{
 #declare MyY=seed(1);
 #declare MyZ=seed(2);
 #declare MyHeight=seed(3);
 #declare MyCount=1;
 #while (MyCount<=MyAmount)
  #declare MyBoxY=rand(MyY);
  #declare MyBoxZ=rand(MyZ);
  #declare MyBoxHeight=rand(MyHeight);
  box
  {
   < -MyWidth, (-MySize*MyBoxY), -1000.0 > < MyWidth, (MySize*MyBoxY),
((-MyBegin)-(50.0*MyBoxZ)) >
   translate < 0.0, -(400.0*MyBoxHeight), 0.0 >
  }
  box
  {
   < -MyWidth, (-MySize*MyBoxY), -1000.0 > < MyWidth, (MySize*MyBoxY),
((-MyBegin)-(50.0*MyBoxZ)) >
   translate < 0.0, (400.0*MyBoxHeight), 0.0 >
  }
  #declare MyCount=MyCount+1;
 #end
 texture { MyTexture }
}
#end

difference
{
 union
 {
  box { < -62.5, -200.0, -325.0 > < -61.0, 200.0, -300.0 > }
  box { <  61.0, -200.0, -500.0 > <  62.5, 200.0, -300.0 > }
 }
 HullCommandFrontCutout(125,10.0,150.0,275.0,TextureHullSide)
 texture { TextureHullSide }
}


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Symmetry not Working?
Date: 30 Mar 2015 19:39:33
Message: <5519deb5$1@news.povray.org>
On 29.03.2015 11:18, Sven Littkowski wrote:

>    box { < -62.5, -200.0, -325.0 > < -61.0, 200.0, -300.0 > }
>    box { <  61.0, -200.0, -500.0 > <  62.5, 200.0, -300.0 > }

Try starting with two symmetrical boxes (check z coords).


Post a reply to this message

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