Axiom.Serialization.MeshSerializerImpl.ReadMeshBoneAssignment C# (CSharp) Method

ReadMeshBoneAssignment() protected method

protected ReadMeshBoneAssignment ( BinaryReader reader ) : void
reader System.IO.BinaryReader
return void
		protected virtual void ReadMeshBoneAssignment( BinaryReader reader )
		{
			VertexBoneAssignment assignment = new VertexBoneAssignment();

			// read the data from the file
			assignment.vertexIndex = ReadInt( reader );
			assignment.boneIndex = ReadUShort( reader );
			assignment.weight = ReadFloat( reader );

			// add the assignment to the mesh
			mesh.AddBoneAssignment( assignment );
		}