Questions tagged [plane]

A plane, in geometry, is a flat 2D surface that extends indefinitely. They are commonly used in linear algebra, computer graphics, and charts.

385 questions
37
votes
8 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
  • 822
  • 2
  • 10
  • 19
36
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
  • 614
  • 1
  • 6
  • 11
32
votes
3 answers

Matplotlib - 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,320
  • 9
  • 38
  • 64
32
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,332
  • 1
  • 13
  • 32
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
  • 833
  • 2
  • 10
  • 16
17
votes
6 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
  • 5,779
  • 27
  • 75
  • 132
16
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
  • 16,219
  • 15
  • 62
  • 89
14
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,267
  • 2
  • 15
  • 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
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
  • 12,633
  • 9
  • 41
  • 67
10
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,555
  • 5
  • 24
  • 58
8
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,329
  • 2
  • 17
  • 21
7
votes
1 answer

3D Ray-Quad intersection test in java

In 3D space I am trying to determine if a ray/line intersects a square and if so, the x and y position on the square that it intersects. I have a ray represented by two points: R1 = (Rx1, Ry1, Rz1) and R2 = (Rx2, Ry2, Rz2) And the square is…
Smalesy
  • 571
  • 1
  • 7
  • 20
7
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
  • 3,666
  • 3
  • 27
  • 49
6
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
  • 446
  • 3
  • 11
  • 21
1
2 3
25 26