Axiom.Core.WireBoundingBox.InitAABB C# (CSharp) Méthode

InitAABB() private méthode

private InitAABB ( Axiom.MathLib.AxisAlignedBox box ) : void
box Axiom.MathLib.AxisAlignedBox
Résultat void
		public void InitAABB( AxisAlignedBox box )
		{
			// store the bounding box locally
			this.BoundingBox = box;
		}

Usage Example

        /// <summary>
        ///		Adds this nodes bounding box (wireframe) to the RenderQueue.
        /// </summary>
        /// <param name="queue"></param>
        public void AddBoundingBoxToQueue(RenderQueue queue)
        {
            if (wireBox == null)
            {
                wireBox = new WireBoundingBox();
            }

            // add the wire bounding box to the render queue
            wireBox.InitAABB(worldAABB);
            queue.AddRenderable(wireBox);
        }