Converts a polyhedron from the vertices-faces representation to the three-block representation.
N by 3 matrix containing the XYZ coordinates of N vertices
M by 3 matrix containing indices of vertices defining M faces
The values in the
Face matrix must be integers with values running from 1 to N,
where N is the number of vertices. A value of '1' in this matrix, for example,
represents the 1st vertex, i.e., the vertex defined by the first row in the
This function is the inverse of the
Returns a list of three matrices. The first is an M by 3 matrix containing the XYZ coordinates of vertex 1 of the M faces of the polyhedron. The second and third are similarly M by 3 matrices, but contain the XYZ coordinates of vertices 2 and 3 of the faces. See the example below.
1 2 3 4 5 6 7 8 9 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.