Questions tagged [3d]
For things related to 3 dimensions. For geometry of 3-dimensional solids, please use instead (solid-geometry). For non-planar geometry, but otherwise agnostic of dimensions, perhaps (euclidean-geometry) or (analytic-geometry) should also be considered.
357 questions
200
votes
21
answers
412k
views
Calculate Rotation Matrix to align Vector $A$ to Vector $B$ in $3D$?
I have one triangle in $3D$ space that I am tracking in a simulation. Between time steps I have the previous normal of the triangle and the current normal of the triangle along with both the current ...
151
votes
15
answers
239k
views
Why is the volume of a cone one third of the volume of a cylinder?
The volume of a cone with height $h$ and radius $r$ is $\frac{1}{3} \pi r^2 h$, which is exactly one third the volume of the smallest cylinder that it fits inside.
This can be proved easily by ...
110
votes
8
answers
253k
views
What is the equation for a 3D line?
Just like we have the equation $y=mx+b$ for $\mathbb{R}^{2}$, what would be a equation for $\mathbb{R}^{3}$? Thanks.
62
votes
11
answers
366k
views
How to calculate the area of a 3D triangle?
I have coordinates of 3d triangle and I need to calculate its area. I know how to do it in 2D, but don't know how to calculate area in 3d. I have developed data as follows.
...
26
votes
1
answer
75k
views
3D projection on a 2D plane ( weak maths ressources )
As the title says, i want to project 3D points with known (x, y, z) coordinates into a 2D plane with (x', y') coordinates, knowing that the x and y axes are respectively identical to the x' and y' ...
16
votes
4
answers
16k
views
Is there a shape with infinite volume but finite surface area?
Is there any pathological shape that has a finite surface area but an infinite volume, sort of like the opposite of a Gabriel's horn?
3
votes
3
answers
35k
views
How to find shortest distance between two skew lines in 3D?
If given 2 lines $\alpha$ and $\beta$, that are created by
2 points: A and B
2 plane intersection
I want to find shortest distance between them.
$$\left\{\begin{array}{c} P_1=x_1X+y_1Y+z_1Z+C=0 \\ ...
37
votes
4
answers
28k
views
uniform random point in triangle in 3D
Suppose you have an arbitrary triangle with vertices $A$, $B$, and $C$. This paper (section 4.2) says that you can generate a random point, $P$, uniformly from within triangle $ABC$ by the following ...
15
votes
3
answers
30k
views
Check if a point is inside a rectangular shaped area (3D)?
I am having a hard time figuring out if a 3D point lies in a cuboid (like the one in the picture below). I found a lot of examples to check if a point lies inside a rectangle in a 2D space for example ...
24
votes
3
answers
173k
views
Equation of a plane passing through 3 points
It should be simple, but I'm having trouble.
The three points are
$$A(1,-2,1)\qquad B(4,-2,-2)\qquad C(4,1,4)$$
The plane I get is
$$x+2y+z+6=0$$
but it obviously does not pass through the three ...
17
votes
2
answers
45k
views
How to calculate interpolating splines in 3D space?
I'm trying to model a smooth path between several control points in three dimensions, the problem is that there doesn't appear to be an explanation on how to use splines to achieve this. Are splines a ...
12
votes
5
answers
9k
views
Is there a name for a 3D shape that looks like a circle when viewed from one axis, a square from another, and a triangle from the third?
The shape can be constructed by taking a cylinder with its height equal to its diameter and cutting a triangle out of it when viewing it from the side with the base of the triangle matching one end of ...
6
votes
1
answer
5k
views
Expression of rotation matrix from two vectors
What is the matrix expression of the rotation matrix in 3D which turns a vector $\vec{a}$ into a vector $\vec{b}$, with both vectors given by their coordinates? ($\vec{a} = (a_x, a_y, a_z)$ and $\vec{...
4
votes
1
answer
43k
views
Find a plane that passes through a point and is perpendicular to 2 planes
Find an equation of a plane that passes through $p(1,5,1)$ and is perpendicular to planes $2x+y-2z = 2$ and $x+3z=4$.
I basically need the 2 other points to make the vector and perform the cross ...
1
vote
3
answers
3k
views
Finding a 4th point in 3D space knowing 3 other points and 2 distances to the 4th point from them
I have 3 points in space A, B, and C all with (x,y,z) coordinates, therefore I know the distances between all these points. I wish to find point D(x,y,z) and I know the distances BD and CD, I do NOT ...
0
votes
1
answer
425
views
$n$-dimensional rotation along a 2D arbitrary plane
Given two vectors in $\mathbb{R}^n$, $v_0$ and $v_1$, which define a plane including the origin a rotation along that plane can be defined from $v_0$ to $v_1$. I know the formula for rotation within ...
21
votes
2
answers
55k
views
How to transform a set of 3D vectors into a 2D plane, from a view point of another 3D vector?
I googled around a bit, but usually I found overly-technical explanations, or other, more specific Stackoverflow questions on how 3D computer graphics work. I'm sure I can find enough resources for ...
14
votes
5
answers
2k
views
Ellipsoid but not quite
I have an ellipsoid centered at the origin. Assume $a,b,c$ are expressed in millimeters. Say I want to cover it with a uniform coat/layer that is $d$ millimeters thick (uniformly).
I just realized ...
11
votes
2
answers
13k
views
Determine if projection of 3D point onto plane is within a triangle
In 3D, given three points $P_1$, $P_2$, and $P_3$ spanning a non-degenerate triangle $T$. How to determine if the projection of a point $P$ onto the plane of $T$ lies within $T$?
7
votes
2
answers
3k
views
Find normal vector of circle in 3D space given circle size and a single perspective
I don't really know what to search up to answer my question. I tried such things as "ellipse matching" and "3d circle orientation" (and others) but I can't really find much. But anyways...
I have ...
7
votes
2
answers
25k
views
How to multiply vector 3 with 4by4 matrix, more precisely position * transformation matrix
All geometry in computer graphics are transformed by position * transform matrix; The issue is the fact that position is a vector with 3 components (x,y,z); And transform matrix is a 4 by 4 with one ...
4
votes
1
answer
2k
views
How many distinct ways to flatten a cube?
Think of cutting open a cubical box with the smallest possible cuts to lay it flat. A cube has 12 edges and it seems in all the possible meshes, you have to cut along 7 edges. So, the most possible ...
0
votes
1
answer
3k
views
Test if a point is inside a 3D cuboid
I have a cuboid in 3D space, it is not regular at all.
I do have the coordinates of its 8 vertices and my problem is how to determine a given point coordinate is inside or outside this cuboid.
I ...
0
votes
1
answer
2k
views
Ray Plane Intersection Calculation
I am currently having issues with calculating plane intersection of a ray.
I start with the following equation
$P = P_0 +tR_t$
$R_t$ is the Unit Vector of the Trajectory.
Now we have a plane ...
29
votes
9
answers
119k
views
Recommended (free) software to plot points in 3d
I am looking for (preferably free) software to:
1) plot 3d points read from a file. A scatter plot would be fine.
2) Optionally color the points by a property - also read from the file
It would be ...