|
|
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
|
|
|
|
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
|
|