POV-Ray : Newsgroups : povray.binaries.images : I need to fix this.. Server Time
3 Oct 2024 02:19:36 EDT (-0400)
  I need to fix this.. (Message 11 to 20 of 26)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 6 Messages >>>
From: Anton Sherwood
Subject: Re: I need to fix this..
Date: 12 Mar 2000 07:08:46
Message: <38CB89DE.5E11B30F@pobox.com>
"Lt. Kettch" wrote:
> I am trying to put two cylinders together, but the red over laps onto
> the gray(90) and vice-verca. How do I crop the over lapping parts with
> out leaving a big hole in the finished item? BTW the gray that sticks
> out the back of the red doesn't matter.

The simplest thing would be intersections with a plane at the
appropriate angle.

-- 
Anton Sherwood  *\\*  br0### [at] p0b0xcom  *\\*  http://www.jps.net/antons/


Post a reply to this message

From: Chris Huff
Subject: Re: I need to fix this..
Date: 12 Mar 2000 10:19:42
Message: <chrishuff_99-B9C806.10213212032000@news.povray.org>
In article <38CB89DE.5E11B30F@pobox.com>, Anton Sherwood 
<bro### [at] poboxcom> wrote:

> The simplest thing would be intersections with a plane at the
> appropriate angle.

A rotated box might be faster, just make sure it is big enough.

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

From: Bill DeWitt
Subject: Re: I need to fix this..
Date: 12 Mar 2000 11:12:45
Message: <38cbc1fd@news.povray.org>
"Lt. Kettch" <AKK### [at] aolcom> wrote in message
news:38CAEA76.9158EDAC@aol.com...
> I am trying to put two cylinders together, but the red over laps onto
> the gray(90) and vice-verca. How do I crop the over lapping parts with
> out leaving a big hole in the finished item? BTW the gray that sticks
> out the back of the red doesn't matter.
>


I've been playing with this and it is not as simple a problem as I thought.
In cases where the proper cylinders are chosen my solution (when corrected)
works, but with some other cylinders it does not, as you found out I am
sure.

Intersections of planes should work, but you would have to work out the math
for each union and my math is not up to that. I am sure one of the vector
functions will do it, but someone else will have to answer that question.


Post a reply to this message

From: Ken
Subject: Re: I need to fix this..
Date: 12 Mar 2000 11:31:20
Message: <38CBC566.1122524A@pacbell.net>
"Lt. Kettch" wrote:
> 
> I am trying to put two cylinders together, but the red over laps onto
> the gray(90) and vice-verca. How do I crop the over lapping parts with
> out leaving a big hole in the finished item? BTW the gray that sticks
> out the back of the red doesn't matter.


Here is one possible way to do it:

camera {location < 0, 0, -2 >look_at  0}

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

#declare Cy1 = cylinder{ x*-1,x*0,.25 pigment{red 1}}

#declare Cy2 = cylinder{ x* 0,x*1,.25 pigment{blue 1}}

intersection {
 object {Cy1}
  plane { x,-.125 translate y*-.25 rotate 22.5*z pigment {red 1}}
 rotate 22.5*-z translate<.125,0,0>
}

intersection {
 object {Cy2}
  plane { x,.125 translate y*-.25 inverse rotate 22.5*-z pigment {blue 1}}
 rotate 22.5*z translate x*-.125
}


-- 
Ken Tyler -  1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message


Attachments:
Download 'test1.jpg' (5 KB)

Preview of image 'test1.jpg'
test1.jpg


 

From: Lt  Kettch
Subject: Re: I need to fix this..
Date: 12 Mar 2000 13:56:17
Message: <38CBE8C0.3FDAA8F1@aol.com>
Oooh, you stinker. my friend and I are trying the same thing after
trying boxes and the difference of the two cylinders.


Post a reply to this message

From: David Fontaine
Subject: Re: I need to fix this..
Date: 12 Mar 2000 18:38:22
Message: <38CC2993.FEFC22B5@faricy.net>
Bill DeWitt wrote:

> union{
> difference
>
>                      object { Red1 }
>                      object { Grey1 }
>                   }
> difference
>
>                      object { Grey2 }
>                      object { Red2 }
>                   }
>         } // end union

Umm, I don't think that's right...

--
___     _______________________________________________
 | \     |_          <dav### [at] faricynet> <ICQ 55354965>
 |_/avid |ontaine        http://www.faricy.net/~davidf/

"The only difference between me and a madman is that I'm not mad." -Dali


Post a reply to this message

From: David Fontaine
Subject: Re: I need to fix this..
Date: 12 Mar 2000 18:40:59
Message: <38CC2A30.8B08544@faricy.net>
Ross Litscher wrote:

> >     Please! It was 31 kb! A tiny image no matter what the pixel count. Not
> > the smartest of whines, plus you misspelled Einstein.

Yup, don't you love it when people lose credibility? Oops, I should shut up
before I do. Whaddya mean, already have? ;-p

> hehehaha, the first time i read his posting, i misread "einstine" for
> "intestine"!

I did too!

--
___     _______________________________________________
 | \     |_          <dav### [at] faricynet> <ICQ 55354965>
 |_/avid |ontaine        http://www.faricy.net/~davidf/

"The only difference between me and a madman is that I'm not mad." -Dali


Post a reply to this message

From: David Fontaine
Subject: Re: I need to fix this..
Date: 12 Mar 2000 18:43:26
Message: <38CC2AC2.3128C94D@faricy.net>
The proper way to do this is to intersect (or difference) each cylinder with a
plane (or box) in which the face of the plane or box bisects the angle formed
by the cylinders.
Hope that explain it well enough. :-)

--
___     _______________________________________________
 | \     |_          <dav### [at] faricynet> <ICQ 55354965>
 |_/avid |ontaine        http://www.faricy.net/~davidf/

"The only difference between me and a madman is that I'm not mad." -Dali


Post a reply to this message

From: Ross Litscher
Subject: Re: I need to fix this..
Date: 12 Mar 2000 19:12:40
Message: <38cc3278$1@news.povray.org>
David Fontaine <dav### [at] faricynet>

> > hehehaha, the first time i read his posting, i misread "einstine" for
> > "intestine"!
>
> I did too!
>


aaaaahahahahhah!!! rofl

great minds think alike... much like "einstine"

ross.


Post a reply to this message

From: Rick [Kitty5]
Subject: Re: I need to fix this..
Date: 13 Mar 2000 10:39:21
Message: <38cd0ba9@news.povray.org>
how about posting just a close up of the object in question, i dont really
care for star fields..

Rick

"Lt. Kettch" <AKK### [at] aolcom> wrote in message
news:38CAEA76.9158EDAC@aol.com...
> I am trying to put two cylinders together, but the red over laps onto
> the gray(90) and vice-verca. How do I crop the over lapping parts with
> out leaving a big hole in the finished item? BTW the gray that sticks
> out the back of the red doesn't matter.
>


----------------------------------------------------------------------------
----


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 6 Messages >>>

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