POV-Ray : Newsgroups : povray.advanced-users : How would i do a Mitt? means put two pipe together seamless at 90 degree. Server Time
1 Nov 2024 17:19:29 EDT (-0400)
  How would i do a Mitt? means put two pipe together seamless at 90 degree. (Message 1 to 5 of 5)  
From: GrndAdmThrawn
Subject: How would i do a Mitt? means put two pipe together seamless at 90 degree.
Date: 25 Jun 2001 03:22:54
Message: <3b36e6ce@news.povray.org>
I'm wondering how you would like take two cylinder at like 90 degree or 45
degree  then put the end together but the end part would stick out of each
others, how would u cut those end part off and delete it so the pipe like
fits together without any gap or junk sticking out??

kind of like

    /|\
  / / \ \
/ /     \ \

thanks in advance


Post a reply to this message

From: Dan Johnson
Subject: Re: How would i do a Mitt? means put two pipe together seamless at 90 degree.
Date: 25 Jun 2001 06:27:25
Message: <3B371282.7C2E7260@hotmail.com>
GrndAdmThrawn wrote:
> 
> I'm wondering how you would like take two cylinder at like 90 degree or 45
> degree  then put the end together but the end part would stick out of each
> others, how would u cut those end part off and delete it so the pipe like
> fits together without any gap or junk sticking out??
> 
> kind of like
> 
>     /|\
>   / / \ \
> / /     \ \
> 
> thanks in advance

You could use an intersection between an infinite cylinder from
shapes.inc and a plane.  I usually just stick in a sphere to close the
gap.  
-- 
Dan Johnson 

http://www.geocities.com/zapob


Post a reply to this message

From: Bob H 
Subject: Re: How would i do a Mitt? means put two pipe together seamless at 90 degree.
Date: 25 Jun 2001 11:08:06
Message: <3b3753d6@news.povray.org>
"Dan Johnson" <zap### [at] hotmailcom> wrote in message
news:3B371282.7C2E7260@hotmail.com...
> GrndAdmThrawn wrote:
> >
> > I'm wondering how you would like take two cylinder at like 90 degree or
45
> > degree  then put the end together but the end part would stick out of
each
> > others, how would u cut those end part off and delete it so the pipe
like
> > fits together without any gap or junk sticking out??
> >
 > You could use an intersection between an infinite cylinder from
> shapes.inc and a plane.  I usually just stick in a sphere to close the
> gap.

Or use blob maybe.  For components in the blob just two cylinders would do
okay, as in:

light_source {<1,1,-10>,1}

camera {location -5*z angle 60 look_at y}

blob {
        cylinder {2*x,0,.5,1 rotate 45*z}
        cylinder {2*x,0,.5,1 rotate 90*z}
        threshold 0.001
  pigment {rgb 1}
   rotate 22.5*z
}

Bob H.


Post a reply to this message

From: Andrew
Subject: Re: How would i do a Mitt? means put two pipe together seamless at 90 degree.
Date: 25 Jun 2001 16:12:37
Message: <3b379b35@news.povray.org>
Surely simply using a CSG difference between the cylinder and a box
would
work fine?  You could either translate the cylinders to their final
positions, then chop off the box, or use a bit of trig if you wanted to
chop
first and move later.

I imaging this method should render faster than the other two
suggestions so
far.  Permission to quote me on that is witheld, though :)




> I'm wondering how you would like take two cylinder at like 90 degree
or 45
> degree  then put the end together but the end part would stick out of
each
> others, how would u cut those end part off and delete it so the pipe
like
> fits together without any gap or junk sticking out??
>
> kind of like
>
>     /|\
>   / / \ \
> / /     \ \
>
> thanks in advance


Post a reply to this message

From: Ib Rasmussen
Subject: Re: How would i do a Mitt? means put two pipe together seamless at 90 degree.
Date: 26 Jun 2001 16:37:32
Message: <3B38F2AF.2F0C7929@ibras.dk>
GrndAdmThrawn wrote:
> 
> I'm wondering how you would like take two cylinder at like 90 degree or 45
> degree  then put the end together but the end part would stick out of each
> others, how would u cut those end part off and delete it so the pipe like
> fits together without any gap or junk sticking out??

If you want a sharp bend you could do it like this:

#declare cut_cylinder=difference { // cylinder cut at 45deg
   cylinder { <-100, 0, 0>, <20, 0, 0>, 5 }
   plane {-x, 0 rotate <0, 45, 0> }
}

#declare deg90_cylinder=union{
   object { cut_cylinder }   
   object { cut_cylinder rotate <0, -90, 0> scale <-1, 1, 1> }   
}         

If you want a softer bend, you can just connect two cylinders with a
sphere like this:

#declare soft90deg_cylinder=union{
   cylinder { <-100, 0, 0>, <0, 0, 0>, 5 }
   sphere { <0, 0, 0>, 5 }
   cylinder { <0, 0, 0>, <0, 0, -100>, 5 }
}

/Ib
------------------------------
Gallery: http://www.ibras.dk


Post a reply to this message

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