POV-Ray : Newsgroups : povray.newusers : Creating a partially elevated surface Server Time
5 Nov 2024 03:16:56 EST (-0500)
  Creating a partially elevated surface (Message 1 to 3 of 3)  
From:
Subject: Creating a partially elevated surface
Date: 17 Aug 2002 18:55:21
Message: <3d5ed459$1@news.povray.org>
Hi... I just decided to start using POVray again, not that I've done much
with it in the past but that's beside the point.

I want to create a surface whose edges are defined by the sides of two
intersecting cylinders and a box but whose center is elevated. Is there a
way to do this using CGI?
The edges are in one plane and the shape resembles the top of a boat or
perhaps a sword. It is essential that the edges of the new surface are in
that same plane so it all fits nicely....

can anyone help me? many thanks in advance


Post a reply to this message

From: hughes b
Subject: Re: Creating a partially elevated surface
Date: 18 Aug 2002 03:09:02
Message: <3d5f480e@news.povray.org>

news:3d5ed459$1@news.povray.org...
>
> I want to create a surface whose edges are defined by the sides of two
> intersecting cylinders and a box but whose center is elevated. Is there a
> way to do this using CGI?
> The edges are in one plane and the shape resembles the top of a boat or
> perhaps a sword. It is essential that the edges of the new surface are in
> that same plane so it all fits nicely....

I think I just strained a neuron or two trying to imagine that shape. Must
be the top of boat, or sword with edges all on same plane I have trouble
with. CGI=CSG? ;-)

I have a feeling you might need to grab your nearest paint program and
sketch something to post at povray.binaries.images. I keep thinking of two
kinds of things, and then that part about elevated in the center throws me
off thinking you might be talking of a end to end curve rather than side to
side (if that makes any sense).

If it's only a pair of grooves, or two elongated depressions, with a flat
underside then I might know what you're asking for. If not.... better try
that picture or maybe someone else will come along here to envisions it as
you do. I'm no good with ASCII art otherwise I'd try to draw what I'm
thinking of.

You know what, maybe I'm being too complex. Please try rendering the
following and see if that's about it or not and advise of what is right or
wrong with it:

#declare WhatIsIt1=
intersection {
cylinder {-x,x,1 scale <1.001,0.25,1> translate -z/1.5}
cylinder {-x,x,1 scale <1.001,0.25,1> translate z/1.5}
box {-1,1 scale <1,0.5,1> translate -y/2.5}
 pigment {rgb 1}
}

#declare WhatIsIt2=
difference {
box {-1,1 scale <1,0.5,1> translate -y/2.5}
cylinder {-x,x,1 scale <1.001,0.25,1> translate -z/1.5}
cylinder {-x,x,1 scale <1.001,0.25,1> translate z/1.5}
 pigment {rgb 1}
}

//object {WhatIsIt1}

object {WhatIsIt2}

light_source {<1,2,3>,1}

camera {location 2 look_at 0}


Post a reply to this message

From:
Subject: Re: Creating a partially elevated surface
Date: 18 Aug 2002 03:55:28
Message: <3d5f52f0@news.povray.org>
sorry for getting you confused...
I meant CSG of course, it was 2 o'clock at night when I wrote this and I had
already had too little sleep...
when I woke up I realized that it wouldn't be easy to see... I'll post
something in the povray.binaries.images, thanks for the suggestion

thanks for your time

Daan

"hughes b" <omn### [at] charternet> wrote in message
news:3d5f480e@news.povray.org...

> news:3d5ed459$1@news.povray.org...
> >
> > I want to create a surface whose edges are defined by the sides of two
> > intersecting cylinders and a box but whose center is elevated. Is there
a
> > way to do this using CGI?
> > The edges are in one plane and the shape resembles the top of a boat or
> > perhaps a sword. It is essential that the edges of the new surface are
in
> > that same plane so it all fits nicely....
>
> I think I just strained a neuron or two trying to imagine that shape. Must
> be the top of boat, or sword with edges all on same plane I have trouble
> with. CGI=CSG? ;-)
>
> I have a feeling you might need to grab your nearest paint program and
> sketch something to post at povray.binaries.images. I keep thinking of two
> kinds of things, and then that part about elevated in the center throws me
> off thinking you might be talking of a end to end curve rather than side
to
> side (if that makes any sense).
>
> If it's only a pair of grooves, or two elongated depressions, with a flat
> underside then I might know what you're asking for. If not.... better try
> that picture or maybe someone else will come along here to envisions it as
> you do. I'm no good with ASCII art otherwise I'd try to draw what I'm
> thinking of.
>
> You know what, maybe I'm being too complex. Please try rendering the
> following and see if that's about it or not and advise of what is right or
> wrong with it:
>
> #declare WhatIsIt1=
> intersection {
> cylinder {-x,x,1 scale <1.001,0.25,1> translate -z/1.5}
> cylinder {-x,x,1 scale <1.001,0.25,1> translate z/1.5}
> box {-1,1 scale <1,0.5,1> translate -y/2.5}
>  pigment {rgb 1}
> }
>
> #declare WhatIsIt2=
> difference {
> box {-1,1 scale <1,0.5,1> translate -y/2.5}
> cylinder {-x,x,1 scale <1.001,0.25,1> translate -z/1.5}
> cylinder {-x,x,1 scale <1.001,0.25,1> translate z/1.5}
>  pigment {rgb 1}
> }
>
> //object {WhatIsIt1}
>
> object {WhatIsIt2}
>
> light_source {<1,2,3>,1}
>
> camera {location 2 look_at 0}
>
>
>


Post a reply to this message

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