Aurora.Modules.CityBuilder.CityBuilding.createCube C# (CSharp) Метод

createCube() приватный Метод

Constructs a cube at a given location and size.
private createCube ( System.Vector3 pos, System.Vector3 dim, UUID TextureID ) : OpenSim.Framework.PrimitiveBaseShape
pos System.Vector3 The position of the cube, at it's center, [X,Y,Z]
dim System.Vector3 The size of the cube.
TextureID UUID
Результат OpenSim.Framework.PrimitiveBaseShape
        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);
        }