POV-Ray : Newsgroups : povray.general : inclined Prism ? Server Time
4 Nov 2024 23:19:31 EST (-0500)
  inclined Prism ? (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: eric
Subject: inclined Prism ?
Date: 24 Aug 1999 17:50:39
Message: <37c313af@news.povray.org>
How to make an incline prism with POVray ?

I can find in User's guide how to make a prism with a base in a plan, and
going 'upward' (i.e if the base is in x,z plan, the moving axis of the prism
is along the y vector.

Buit how can I do a prism inclined like the Pise tower ? (with, for instance
a moving vector incline with 20 degrees to an axis..).

Is my only choice is to use a mesh or a straight prism cut by 'inclined
boxes' ? That would be very long and tedious compared to my simple polygonal
base and prism shape...

I could use SPatch, but I need a rigorous definition of the polygonal base,
and in SPatch I can't define coordinates other than by moving the cursor and
counting the grid marks....

Thanks you for your help.


Post a reply to this message

From: Chris Huff
Subject: Re: inclined Prism ?
Date: 24 Aug 1999 19:16:18
Message: <37C327F8.F7FE8E00@compuserve.com>
What is wrong with simply rotating the prism?


Post a reply to this message

From: Margus Ramst
Subject: Re: inclined Prism ?
Date: 24 Aug 1999 20:09:40
Message: <37C33439.EE780E0@peak.edu.ee>
You can shear the prism with a matrix transformation. Something like:

matrix < 1, 1, 0,
         0, 1, 0,
         0, 0, 1,
         0, 0, 0 >

Margus

eric wrote:
> 
> How to make an incline prism with POVray ?
> 
> I can find in User's guide how to make a prism with a base in a plan, and
> going 'upward' (i.e if the base is in x,z plan, the moving axis of the prism
> is along the y vector.
> 
> Buit how can I do a prism inclined like the Pise tower ? (with, for instance
> a moving vector incline with 20 degrees to an axis..).
> 
> Is my only choice is to use a mesh or a straight prism cut by 'inclined
> boxes' ? That would be very long and tedious compared to my simple polygonal
> base and prism shape...
> 
> I could use SPatch, but I need a rigorous definition of the polygonal base,
> and in SPatch I can't define coordinates other than by moving the cursor and
> counting the grid marks....
> 
> Thanks you for your help.


Post a reply to this message

From: Reinhard Rettelbach
Subject: Re: inclined Prism ?
Date: 25 Aug 1999 14:08:52
Message: <37C430DA.D842CA59@t-online.de>
eric wrote:

> How to make an incline prism with POVray ?
>
> I can find in User's guide how to make a prism with a base in a plan,
> and
> going 'upward' (i.e if the base is in x,z plan, the moving axis of the
> prism
> is along the y vector.
>
> Buit how can I do a prism inclined like the Pise tower ? (with, for
> instance
> a moving vector incline with 20 degrees to an axis..).
>
> Is my only choice is to use a mesh or a straight prism cut by
> 'inclined
> boxes' ? That would be very long and tedious compared to my simple
> polygonal
> base and prism shape...
>
> ........

matrix transformation should do the job.

ReVerSi


Post a reply to this message

From: eric
Subject: Re: inclined Prism ?
Date: 25 Aug 1999 17:03:18
Message: <37c45a16@news.povray.org>
I need bevelled prisms...
To explain what I mean:If you have a regular cube, it's a kind of prism with
orthogonal edges. If I rotate it, it still have orthogonal edges.
What I need is an extrusion  with non-orthogonal to base vector. (See my
beautiful picture.. I need (2), and not (1) ..)
Perhaps there is a simple way to achieve this lkind of frame... ?

Of course, I could use CSG Differences to cut a regular prism with a rotated
cube to obtain a bevelled prism.. but well, it would be very fastidious in
my case...

Chris Huff wrote in message <37C327F8.F7FE8E00@compuserve.com>...
>What is wrong with simply rotating the prism?
>


Post a reply to this message


Attachments:
Download 'Image1.gif' (4 KB)

Preview of image 'Image1.gif'
Image1.gif


 

From: Ken
Subject: Re: inclined Prism ?
Date: 25 Aug 1999 17:20:13
Message: <37C45DD8.2D7F817C@pacbell.net>
eric wrote:
> 
> I need bevelled prisms...
> To explain what I mean:If you have a regular cube, it's a kind of prism with
> orthogonal edges. If I rotate it, it still have orthogonal edges.
> What I need is an extrusion  with non-orthogonal to base vector. (See my
> beautiful picture.. I need (2), and not (1) ..)
> Perhaps there is a simple way to achieve this lkind of frame... ?
> 
> Of course, I could use CSG Differences to cut a regular prism with a rotated
> cube to obtain a bevelled prism.. but well, it would be very fastidious in
> my case...
> 
> Chris Huff wrote in message <37C327F8.F7FE8E00@compuserve.com>...
> >What is wrong with simply rotating the prism?
> >

A rotational sheering operation make this a snap:

camera{location<-0.75,0,-3> look_at 0}
light_source{<-100,10,-200>rgb 1}

     box { -.5,.5 
           rotate 20*-z
           scale<1,.5,1>
           rotate 10*z
 pigment { rgb 1 }
         }

-- 
Ken Tyler

See my 850+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

From: Peter Popov
Subject: Re: inclined Prism ?
Date: 25 Aug 1999 17:26:04
Message: <37c4ece6.6385853@204.213.191.228>
You have two choices if you want a prism with a well-defined interior:

(easier) Use the matrix keyword to shear the prism. You can find
specific info on how to achieve this on John VanSickle's page, whose
url you can certainly find on Unkle Ken's page.


Peter Popov
ICQ: 15002700


Post a reply to this message

From: Josh English
Subject: Re: inclined Prism ?
Date: 26 Aug 1999 16:23:01
Message: <37C5A245.F9782956@spiritone.com>
Everyone is suggesting the Matrix transformation, but I assume you mean the
"leaning tower" of Pisa, Italy? That tower was built straight up, only a huge
architectural screw up caused it ot lean as it's foundation began to sink on one
side, so a standard prism rotated should do the trick.... but to get the effects
of the diagram, yeah, go for matrix

eric wrote:

> How to make an incline prism with POVray ?
>
> I can find in User's guide how to make a prism with a base in a plan, and
> going 'upward' (i.e if the base is in x,z plan, the moving axis of the prism
> is along the y vector.
>
> Buit how can I do a prism inclined like the Pise tower ? (with, for instance
> a moving vector incline with 20 degrees to an axis..).
>
> Is my only choice is to use a mesh or a straight prism cut by 'inclined
> boxes' ? That would be very long and tedious compared to my simple polygonal
> base and prism shape...
>
> I could use SPatch, but I need a rigorous definition of the polygonal base,
> and in SPatch I can't define coordinates other than by moving the cursor and
> counting the grid marks....
>
> Thanks you for your help.

--
Joshua English
eng### [at] spiritonecom
IQC: 1946299
"It's a thankless job, but I've got a lot of Karma to burn off."


Post a reply to this message

From: John VanSickle
Subject: Re: inclined Prism ?
Date: 26 Aug 1999 17:13:24
Message: <37C5B11E.26B96FEA@erols.com>
Peter Popov wrote:
> 
> You have two choices if you want a prism with a well-defined interior:
> 
> (easier) Use the matrix keyword to shear the prism. You can find
> specific info on how to achieve this on John VanSickle's page, whose
> url you can certainly find on Unkle Ken's page.

Or you can find it right here!

  http://www.users.erols.com/vansickl/matrix.htm

Regards,
John


Post a reply to this message

From: Margus Ramst
Subject: Re: inclined Prism ?
Date: 26 Aug 1999 20:38:47
Message: <37C5DE0D.C0E08916@peak.edu.ee>
Josh English wrote:
> 
> Everyone is suggesting the Matrix transformation, but I assume you mean the
> "leaning tower" of Pisa, Italy? That tower was built straight up, only a huge
> architectural screw up caused it ot lean as it's foundation began to sink on one
> side, so a standard prism rotated should do the trick.... but to get the effects
> of the diagram, yeah, go for matrix
> 

You forget that the tower is also bent...

Margus


Post a reply to this message

Goto Latest 10 Messages Next 1 Messages >>>

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