POV-Ray : Newsgroups : povray.general : plane through 4 points : Re: plane through 4 points Server Time
23 May 2024 19:48:45 EDT (-0400)
  Re: plane through 4 points  
From: Bald Eagle
Date: 30 May 2019 20:45:01
Message: <web.5cf078f257960f354eec112d0@news.povray.org>
"folkert" <fol### [at] vanheusdencom> wrote:
> Hi,
>
> I would like to render a plane through 4 3D points.
> How can I do so?
> E.g. a plane but, as it are 3D points, it should bend where required.
>
>
> regards

Well, you can "easily" create a plane that passes through 3 points.
http://news.povray.org/povray.binaries.images/message/%3Cweb.5880fc4d1652a4dcc437ac910%40news.povray.org%3E/#%3Cweb.588
0fc4d1652a4dcc437ac910%40news.povray.org%3E

If you want a curved sheet that passes through 4 points, then you'd have to
specify how that curved sheet passes through them.  any one of the 4 points
could be the "odd one out" - which then specifies the direction of the curving.

I guess with some vector math you could do something along the lines of
projecting that point onto the plane defined by the other 3 points, find one of
the 3 different centers of the triangle defined by those 3 points, and use the
center, the projected point, and the odd point out to define a spline / curve.

I just did a huge amount of work a while back to get multiple bezier patches
that pass through defined points - so that's what I'm thinking is a way.

Maybe there's a way to do it with a function / isosurface or parametric.

Actually, I was just playing with making a sheet with a prism, and found that
you can make "linear" prisms that will give you that.

So maybe a prism would be simplest.


Post a reply to this message

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