Axiom.Core.StaticGeometry.GetRegion C# (CSharp) Method

GetRegion() protected method

protected GetRegion ( ushort x, ushort y, ushort z, bool autoCreate ) : Axiom.Core.Region
x ushort
y ushort
z ushort
autoCreate bool
return Axiom.Core.Region
		protected Region GetRegion( ushort x, ushort y, ushort z, bool autoCreate )
		{
			uint index = PackIndex( x, y, z );
			Region region = GetRegion( index );
			if ( region == null && autoCreate )
			{
				// Make a name
				string str = string.Format( "{0}:{1}", name, index );
				// Calculate the region center
				Vector3 center = GetRegionCenter( x, y, z );
				region = new Region( this, str, owner, index, center );
				owner.InjectMovableObject( region );
				region.IsVisible = visible;
				region.CastShadows = castShadows;
				if ( renderQueueIDSet )
					region.RenderQueueGroup = renderQueueID;
				regionMap[ index ] = region;
			}
			return region;
		}

Same methods

StaticGeometry::GetRegion ( Axiom.MathLib.AxisAlignedBox bounds, bool autoCreate ) : Axiom.Core.Region
StaticGeometry::GetRegion ( Vector3 point, bool autoCreate ) : Axiom.Core.Region
StaticGeometry::GetRegion ( uint index ) : Axiom.Core.Region