private PrimitiveBaseShape createCube(Vector3 pos, Vector3 dim, UUID TextureID )
{
// Construct a cube at a given position, size and texture UUID.
PrimitiveBaseShape cubeShape = PrimitiveBaseShape.CreateBox();// new PrimitiveBaseShape();
cubeShape.ToOmvPrimitive(pos, Quaternion.Identity);
cubeShape.Scale = dim;
// place into the region at given position
// texture the object from the given texture id, if this texture is not found
// then default to use one of the standard textures it knows about that
// during first run it will create and store in the asset database (todo).
return cubeShape;
// return createCube(pos, dim, TextureID);
}