POV-Ray : Newsgroups : povray.newusers : this is very strange!! : Re: this is very strange!! Server Time
31 Jul 2024 06:25:05 EDT (-0400)
  Re: this is very strange!!  
From: Warp
Date: 12 Dec 2002 05:47:05
Message: <3df86929@news.povray.org>
Lenx <lenx_@hotmail.com> wrote:
> box{ <0,0,0> <.1,6,.1> rotate <30,0,-30> translate <-2,0,-2> pigment{Grey}}

> When you render this scene, you see a grey rod next to a green one. I don't
> understand why they don't intersect?! Looking to the rotation of the grey
> rod, it should be crossing a point where x=0 and z=0 (the green rod).
> But it doesn't...

  You are assuming that after rotating 30 degrees around the x-axis and
then -30 degrees around the z-axis, the rod will be 45 degrees from both
axes (only that way it would cross the y axis when translated to <-2,0,-2>).
  This isn't so.

  If you want the rod to cross the y-axis, you need to truely rotate it
45 degrees around the y-axis. That is:

box{ <0,0,0> <.1,6,.1> rotate <30,45,0> translate <-2,0,-2> pigment{Grey}}

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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