A plane, in geometry, is a flat 2D surface that extends indefinitely. They are commonly used in linear algebra, computer graphics, and charts.
Questions tagged [plane]
427 questions
44
votes
2 answers
Projecting 3D points to 2D plane
Let A be a point for which I have the 3D coordinates x, y, z and I want to transform them into 2D coordinates: x, y. The projection shall be orthogonal on a plane defined by a given normal. The trivial case, where the normal is actually one of the…

Lighthink
- 704
- 1
- 7
- 11
42
votes
9 answers
3D Line-Plane Intersection
If given a line (represented by either a vector or two points on the line) how do I find the point at which the line intersects a plane? I've found loads of resources on this but I can't understand the equations there (they don't seem to be standard…

jt78
- 906
- 2
- 10
- 22
42
votes
3 answers
Plot a plane and points in 3D simultaneously
I m trying to plot simultaneously a plane and some points in 3D with Matplotlib.
I have no errors just the point will not appear.
I can plot at different times some points and planes but never at same time.
The part of the code looks like :
import…

user3601754
- 3,792
- 11
- 43
- 77
37
votes
3 answers
How to measure the tilt of the phone in XY plane using accelerometer in Android
I tried to use the Z axis data from SensorEvent.values, but it doesn't detect rotation of my phone in the XY plane, ie. around the Z-axis.
I am using this as a reference for the co-ordinate axes. Is it correct?
How do I measure that motion using…

udiboy1209
- 1,472
- 1
- 15
- 33
28
votes
4 answers
Generate a plane with triangle strips
What would be the best algorithm to generate a list of vertices to draw a plane using triangle strips?
I'm looking for a function which receives the plane's width and height and returns a float array containing correctly indexed vertices.
width…

NIGO
- 863
- 2
- 10
- 16
19
votes
7 answers
Line of intersection between two planes
How can I find the line of intersection between two planes?
I know the mathematics idea, and I did the cross product between the the planes normal vectors
but how to get the line from the resulted vector programmatically

AMH
- 6,363
- 27
- 84
- 135
17
votes
3 answers
Transforming a 3D plane using a 4x4 matrix
I have a shape made out of several triangles which is positioned somewhere in world space with scale, rotate, translate. I also have a plane on which I would like to project (orthogonal) the shape.
I could multiply every vertex of every triangle in…

Thijs Koerselman
- 21,680
- 22
- 74
- 108
17
votes
2 answers
Rendering infinitely large plane
I want to render a plane so that it looks as if it goes to infinity in all directions. I want the plane boundary in the distance to be the horizon.
Using a simple mesh does not work - the computer can't render infinitely many triangles. Even if…

Violin Yanev
- 1,507
- 2
- 16
- 23
12
votes
1 answer
Find OpenGL rotation matrix for a plane, given the normal vector after the rotation
Is there a way to obtain the matrix which rotates a plane to a new orientation, given its new normal vector
The following image depicts what is described

rraallvv
- 2,875
- 6
- 30
- 67
10
votes
3 answers
3D rotations of a plane
I'm doing something where I have a plane in a coord sys A with a set of points already on it. I also have a normal vector in space N. How can I rotate the points on coord sys A so that the underlying plane will have the same normal direction as…

bendervader
- 2,619
- 2
- 19
- 22
10
votes
4 answers
Fast algorithm to find the x closest points to a given point on a plane
I would like to find a fast algorithm in order to find the x closest points to a given point on a plane.
We are actually dealing with not too many points (between 1,000 and 100,000), but I need the x closest points for every of these points. (where…

Michael Junk
- 461
- 2
- 7
- 15
10
votes
2 answers
Plane-plane intersection in python
I need to calculate intersection of two planes in form of AX+BY+CZ+D=0 and get a line in form of two (x,y,z) points. I know how to do the math, but I want to avoid inventing a bicycle and use something effective and tested. Is there any library…

Stepan Yakovenko
- 8,670
- 28
- 113
- 206
10
votes
6 answers
Normal Vector of Three Points
Hey math geeks, I've got a problem that's been stumping me for a while now. It's for a personal project.
I've got three dots: red, green, and blue. They're positioned on a cardboard slip such that the red dot is in the lower left (0,0), the blue dot…

mattbasta
- 13,492
- 9
- 47
- 68
10
votes
2 answers
How to convert a 3D point on a plane to UV coordinates?
I have a 3d point, defined by [x0, y0, z0].
This point belongs to a plane, defined by [a, b, c, d].
normal = [a, b, c], and ax + by + cz + d = 0
How can convert or map the 3d point to a pair of (u,v) coordinates ?
This must be something really…

tigrou
- 4,236
- 5
- 33
- 59
10
votes
6 answers
Plane fitting to 4 (or more) XYZ points
I have 4 points, which are very near to be at the one plane - it is the 1,4-Dihydropyridine cycle.
I need to calculate distance from C3 and N1 to the plane, which is made of C1-C2-C4-C5.
Calculating distance is OK, but fitting plane is quite…

XuMuK
- 564
- 4
- 11
- 32