Geometry

Requirement for Valid Lower-Dimensional Features in Higher Dimensions

There is a requirement that all of the lines that form a face are co-planar. Is there a higher-dimensional generalization of this requirement? I believe it requires considering the next highest dimension: a face is 2D but this requirement is only relevant if we are in working in 3D (being non-co-planar means that a vertex has a component outside the 2D subspace of the face). So this is difficult to grasp for higher dimensional because to have this requirement for a polyhedron, a vertex must be capable of having a component outside or perpendicular to the 3D subspace of the polyhedron, which would be the 4th dimension.

So here is an attempt at generalizing this requirement. in N dimensions, an K dimensional polytope, where K is less than N, must meet the following requirement. We can create a subspace basis for our polytope with K basis vectors. We shall then find the remaining (N-K) vectors perpendicular to our subspace basis and each other. Together these N vectors form a new coordinate system for N space. We can transform each vertex of our polytope to these new coordinates. For each vertex, the components in the last (N-K) directions corresponding to the space perpendicular to our polytope subspace must be zero.

Geometric Algebra

Rotations

Rotate a vector \(\mathbf{v}\) by rotor \(\mathbf{r}\). A rotor is an arbitrary sum of even-grade terms.

Example in three dimensions

If you distribute the above, the trivector terms cancel, leaving only the vector terms. If you collect the vectors terms, you can construct a rotation matrix and see that it is identical to construction using quaternions.

The only requirement for \(r\) is

where

Note that the number of terms in the rotation equation before simplification is \(n^2 2^{(n-1)}\). So the computational cost increases quickly with \(n\).

Linear Algebra

Definition of a Subspace

A k-dimensional subspace will at first be defined by the intersection of \(i\) \((n-k)\) hyperplanes.

we can combine the equations for individual hyperplanes into a single matrix-vector equation

where is a -by- matrix, is the position vector and is a -vector.

We want to convert this to the form

where is some point on the subspace, is a -by- matrix, and is a -vector. This is a parameterization of the subspace using the parameter . The columns of are orthogonal basis vectors for the subspace.

The matrix can be calculated using a gaussian elimination algorithm. See an implementation here.

Keywords to research are

Intersection of a Ray and a Hyperplane

The ray is defined by

The plane is defined by

Combining these gives

Note that if \(\mathbf{n} \cdot \mathbf{v}=0\), the ray is parallel to the plane and there is not point of intersection.

Intersection of Subspace and Hyperplane

A subspace can be parameterized as

A sided hyperplane inequality is given by

Combine to get

This is a single linear inequality of .

Convert from Position Vector to Parameter Vector on Subspace

Given the k-dimensional subspace defined by

and a known point on that subspace. Find the value of the parameter vector .

If we guarantee that the basis vectors of the subspace (the column vectors of ) are orthogonal, we can simply project individually onto each of these basis vectors.

’'’Hypothesis’’’ If x is not on the subspace, s will be the parameter for the projection of x onto the subspace.

Determinant of a matrix

The determinant of an NxN matrix is