POV-Ray : Newsgroups : povray.newusers : Want to attach one object to another : Re: Want to attach one object to another Server Time
25 Jun 2024 02:38:14 EDT (-0400)
  Re: Want to attach one object to another  
From: gharryh
Date: 21 Jun 2013 11:25:00
Message: <web.51c46fd4c1f827c4520168c30@news.povray.org>
Solved the problem but using something that should not work:
[code]
#macro housing_grnd(L1)
#local L1a = L1 - 16;
difference {
    cylinder{<0,-L1a/2,0><0,L1a/2,0>27.5
        texture { MyBlackRoughPaint }
        texture{
            pigment{
                image_map{ jpeg "RE55.jpg"
                once
                interpolate 4
                }
            translate -.5
            scale .33
            translate .5
            warp{ spherical }
            }
            rotate y*270
        }
    }
    cylinder{<0,L1a/2+.5,0><0,-(L1a/2+.5),0>25.5
        texture{Silver_Metal}
    } // Create a tube
}
#end
[/code]

Found this somewhere writteng to be used with a phere.
Removed the phere and included the cylinder data.
Also with the warp statement.  Doing that it goes wrong.
Using spherical solved it. I cant explain why but the result can be seen here:
http://www.harry-arends.nl/werkgroep/images/RE55_42.png


Post a reply to this message

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