def=defines a side consisting of the vertices sent to the function

Flash3DInstance..model[modelID].assignSide(vertexArray, fillcolor, fillAlpha);

The format for the vertexArray is: [v0, v1, v2...]

fillColor is a hexidecimal value beginning with 0x

It is important that the vertices be entered in a COUNTERCLOCKWISE order for culling calculations&sam=

//creates an empty model, then adds three vertices and makes these define a side of the model


verts = [[0,-50,0],[50,50,0],[-50,50,0]];

myWorld = new Flash3D(270, 200, 0);

myWorld.newModel("mod", "myMesh");

myWorld.model["mod"].addVertices(verts);

myWorld.model["mod"].assignSide([0,2,1], 0x0000FF, 100);

myWorld.render();