Primitive shapes can be created without loading external model files, and for a lot of applications these shapes will suffice. Sandy-HX has a number of built in primitives including a box, cone, cylinder, torus, hedra, sphere and plane.
ApplicationManager.hx
In order to demonstrate the various primitive shapes available with Sandy-HX the ApplicationManager has been modified to create a new MeshObject, supplied with one of these primitives, every few seconds. The primitive is then textured with a random material.
One issue I can across while making the demo was that the JavaScript version cannot remove a Shape3D from the scene when the name supplied to the primitive constructor was null (e.g. new Box(null, 200, 200, 200)). This issue did not affect the Flash version. The simple solution to this is to supply a string instead of a null value for the name parameter.
The second issue that affects the JavaScript version is z sorting on concave objects. A concave object is one that where you can draw a line from one vertex to another, and the line travels outside of the shape: basically any shape with a dent or a hole. The torus (donut) is a good example of this. You can see in the screenshot how the polygons that make up the back of the hole are displayed as if they are in front of the outside of the torus. Sandy has the option to set the useSingleContainer property of a model to false, which means each polygon is depth sorted individually, but this workaround currently makes no difference with the JavaScript version.
As you can see, using the primitive shapes built in to Sandy is quite simple, and for basic 3D web applications removes the need to load these shapes from an external model.
Check out the online demo here, and download the source code here.