def=defines a new mesh to be used as a primitive for models
Flash3DInstance..primitive.newMesh(meshID, vertexList, sideList);
The vertexList is a two dimensional array of vertices and coordinates.
The sideList is a two dimensional array of sides and their vertices.
&sam=//creates a new mesh and three models based on that mesh
myWorld = new Flash3D(270, 200, 0);
verts=[[0,-50,100],[50,50,50],[-50,50,50],[0,-50,-100],[-50,50,-50],[50,50,-50],[-100,-50,0],[100,-50,0]];
sides=[[0,2,1],[3,5,4],[6,4,2],[7,1,5],[1,2,4,5],[0,7,3,6],[0,1,7],[7,5,3],[3,4,6],[6,2,0]];
myWorld.primitive.newMesh("myMesh", verts, sides);
myWorld.newModel("m0", "myMesh");
myWorld.newModel("m1", "myMesh");
myWorld.newModel("m2", "myMesh");
myWorld.model["m0"].translate(-150, -150, 0);
myWorld.model["m1"].translate(150, -150, 0);
myWorld.render();