OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs
/// <summary>
/// Check that the face number is valid for the given prim.
/// </summary>
/// <param name="part"></param>
/// <param name="face"></param>
Check that the face number is valid for the given prim.
Check that the face number is valid for the given prim .
protected void CheckFaceParam(SceneObjectPart part, int face)
        {
            if (face < 0)
                throw new ArgumentException("Face cannot be less than zero");
            int maxFaces = part.GetNumberOfSides() - 1;
            if (face > maxFaces)
                throw new ArgumentException(
                    string.Format("Face argument was {0} but max is {1}", face, maxFaces));
        }
protected void CheckFaceParam ( SceneObjectPart part , int face ) { if ( face < 0 ) throw new ArgumentException ( " " ) ; int maxFaces = part . GetNumberOfSides ( ) - 1 ; if ( face > maxFaces ) throw new ArgumentException ( string . Format ( " " , face , maxFaces ) ) ; }
Check that the face number is valid for the given prim.
Check that the face number is valid for the given prim .
part
SceneObjectPart
None
face
int
None