Polyhedron generation and rendering (WIP)
Overview: This endpoint enables the user to generate and render any
simplicial polyhedron, ie any 3-dimensional shape whose faces are triangular. The user may also rotate this in order to view from any perspective.
Instructions: After
...herokuapp.com above the user should type something that resembles an array of arrays, as follows:
-
First element: This is a six-element array that characterizes the first triangular face of the polyhedron. The first three elements are vertex names, and the last three are (unnormalized) lengths of the edges connecting the 1st and 2nd vertices, the 2nd and 3rd vertices, and the 1st and 3rd vertices respectively.
-
Subsequent elements (optional): Each of these is a seven-element array that characterizes a tetrahedron that defines a vertex added to this polyhedron. Each of the first three is the name of an existing vertex of the polyhedron, and the fourth is the name of the vertex added here. The last three elements are the lengths of the three edges that connect the existing vertices with the added vertex. Note that there are two such tetrahedra defined by these numbers. The convention here is to take the tetrahedron such that the added vertex is above the triangle formed by the existing vertices, when the existing ones are viewed clockwise.
Notes:
This will only return html (not json), even for the case of errors.
Guidelines for urls:
- The use of whitespace is allowed but discouraged.
- Commas are prohibited except for separating elements in arrays.
- Numbers may be represented in many different ways except that any decimal point should be represented by an asterisk rather than by a period owing to the fact that the latter has a special meaning in a url.
Example: ...heroku.com/[(A,B,C,12,5,13),(A,B,C,D,12*37,3,4)] generates the asymmetric tetrahedron indicated below