ConvexPoly.osax ... This package brings a scripting addition ConvexPoly.osax and sample files to handle three dimensional convex polyhedra. Convex polyhedra are simple enough 3D objects so that vectorial rendering is possible. This is the motivation for this osax with which you will get PDF documents of high quality.
You may construct predefined polyhedra such as the 5 Platonic solids, the 13 Archimedean solids and the 13 Catalan solids. Or you may define convex polyhedra by providing a list of vertices or a list of bounding planes. In the first case you get the convex hull of the vertices and in the second case you get the the (possibly empty) intersection of the half spaces defined by the planes.
Convex polyhedra may be translated, scaled or rotated using the corresponding commands. Intersections of convex polyhedra are also handled.
Projections of convex polyhedra in 2D are handled after setting an eye position and an up vector.
Users of Smile, regular edition or full edition: polyhedra may be viewed in a graphic window and saved in PDF format. A dialog gives ability to rotate polyhedra and rotate light in real time.