예제 #1
0
 public override void AddChild(Chunk xiChild)
 {
     if (xiChild is MeshDataChunk)
       {
     if (mMeshData != null)
     {
       throw new Exception("Unexpected second mesh data chunk in mesh '" + mName + "'");
     }
     mMeshData = xiChild as MeshDataChunk;
       }
       else
       {
     Trace.WriteLine("Unrecognised child chunk of mesh '" + mName + "' child details: " + xiChild);
       }
 }
예제 #2
0
 public override void AddChild(Chunk xiChild)
 {
     if (xiChild is MeshChunk)
       {
     if (mMesh != null)
     {
       throw new Exception("Unexpected second mesh chunk in object");
     }
     mMesh = xiChild as MeshChunk;
       }
       else
       {
     Trace.WriteLine("Unrecognised child chunk of object, child details: " + xiChild);
       }
 }
예제 #3
0
 public override void AddChild(Chunk xiChild)
 {
     if (xiChild is ObjectChunk)
       {
     mObjects.Add(xiChild as ObjectChunk);
       }
       else if (xiChild is VersionChunk)
       {
     mVersion = xiChild as VersionChunk;
       }
       else
       {
     Trace.WriteLine("Unrecognised child chunk of file, child details: " + xiChild);
       }
 }
예제 #4
0
 public override void AddChild(Chunk xiChild)
 {
     if (xiChild is VertexListChunk)
       {
     if (mVertexList != null)
     {
       throw new Exception("Unexpected second vertex list chunk in mesh data");
     }
     mVertexList = xiChild as VertexListChunk;
       }
       else if (xiChild is FaceListChunk)
       {
     if (mFaceList != null)
     {
       throw new Exception("Unexpected second face list chunk in mesh data");
     }
     mFaceList = xiChild as FaceListChunk;
       }
       else
       {
     Trace.WriteLine("Unrecognised child chunk of mesh data child details: " + xiChild);
       }
 }
예제 #5
0
 public abstract void AddChild(Chunk xiChild);
예제 #6
0
 public override void AddChild(Chunk xiChild)
 {
     throw new Exception("The method or operation is not implemented.");
 }