Solve the equation for y in terms of x and z at four corners, then use those 4
coordinate triplets to define a Geometry.  If you need the Normal and the
equation describing your plane is:

Ax + By + Cz + D = 0

Then the normal is the vector: (A, B, C)

Is that what you had in mind?  An alternative (if you want your plane to look
like a square or rectangle when viewed along the normal) is to start by
building a rectanlge in the x-z plane.  Then, to get it oriented right, you
will create a Transform3D for it.  The easiest way to do this is to build a
rotation matrix out of an AxisAngle4f.  The axis of the axis angle will be the
cross product of the y-axis and either the gradient or the normal.  The angle
will be the angle between the y-axis and the normal (just use the Angle()
method in Vector3f).

hope this helps,
john
--
John Brecht
[EMAIL PROTECTED]
http://www.msu.edu/~brechtjo/
Department of Physics and Astronomy
Michigan State University


>
> Can someone suggest me a nice way to draw plane using  a three variable equati

on (ex: 2x+3y+z+1=0) using Java 3d API?
> Thanks in advance
> Vasu Suram
>
>
> ------------------------------------------------------
> Get the Latest News at CNN Interactive: http://CNN.com
> =====================================================================
> To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
> Java 3D Home Page: http://java.sun.com/products/java-media/3D/
>



=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to