A renderer for polytopes. Still in alpha.
Miratope can generate these classes of polytopes, among others:
Miratope can also read and export OFF files and GGB files.
Miratope doesn't have an interface yet, so you'll have to use the Console to write down JavaScript commands.
Most of the cool generating commands are on the Build
class. For example, to generate a uniform octagrammic antiprism and render it to the screen, you can use Build.uniformAntiprism(8, 3).renderTo(mainScene);
.
Here's some other commands to try out:
//Renders a cube on screen.
Build.hypercube(3).renderTo(mainScene);
//OFF file for a pentagon-pentagram duoprism.
Product.prism(Build.regularPolygon(5), Build.regularPolygon(5, 2)).saveAsOFF();
//Exports a hexadecachoral prism as a GeoGebra file.
Build.cross(4).extrudeToPrism(1).saveAsGGB();
The OFF file format is a format for storing certain kinds of geometric shapes. Although not in widespread use, it has become the standard format for those who investigate polyhedra and polytopes. It was initially meant for the Geomview software, and was later adapted for the Stella software. Miratope uses a further generalization of the Stella OFF format for any amount of dimensions.
Miratope does not yet include a library of OFF files. Nevertheless, many of them can be downloaded from OfficialURL's personal collection. Eventually, they'll be browsable from Miratope itself.
Provisionally, your OFF file is being loaded into the variable P
. You have to manually render it using the command P.renderTo(mainScene);
.
Note that at the moment, this works only for 3D OFF files, and can be somewhat buggy.
Use mainScene.clear();
.
There are lots of planned features for Miratope, some more ambitious than others. You can look at the complete list, along with some ideas on how to implement them here.
The most immediate changes will probably be the following:
Longer term but more substantial changes include:
Generated using TypeDoc, the 1/31/2021 at 6:18:55 AM