Results 1 to 2 of 2

Thread: How to create a plane from xyz points

  1. #1

    How to create a plane from xyz points

    I have a series of xyz points that I want to use to describe a plane. Could someone give me a general direction on how to start coding this? What sort of commands can I use to curve the differences between points in the plane so I have more of a wave effect instead of a choppy line effect.

    I know this is pretty general, but I've been looking around and haven't found much to help me.

    Thanks in advance!

  2. #2
    Member Contributor
    Join Date
    Apr 2003
    Turin, Italy

    Re: How to create a plane from xyz points

    for describing a plane u need at least 3 point. telling the truth what u really need is one point that lies on the plane and the normal. I am assuming that u know how to find the normal (u know the cross vector stuff)...
    now that u have the norm and the point u have to remember the old geometry books: the plane equation is Ax+By+Cz+D=0 where A B C are the normal components and D is the distance from the origin.
    Now is the real top. How do u find D? well D is simply -(A*Xp+B*Yp*C*Zp), where Xp,Yp,Zp are the cohordinates of the point that lies on the plane.
    I hope that it will be usefull! Bye the Gunslinger

Similar Threads

  1. Create a emitting plane using shader
    By walnutown in forum OpenGL: GLSL
    Replies: 4
    Last Post: 12-03-2014, 05:29 PM
  2. Cube Plane intersection points
    By sajis997 in forum OpenGL: General
    Replies: 1
    Last Post: 05-04-2014, 04:48 PM
  3. Cube plane intersections points
    By Kal Mar in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 09-09-2010, 03:17 PM
  4. Scaling plane to view all points
    By kamillo in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-19-2008, 03:47 PM
  5. Trying to create a 3d matrix plane
    By atv in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-27-2006, 11:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean