void CStreamChunk::Read(Framework::CStream& inputStream) { CBaseChunk::Read(inputStream); m_numElements = inputStream.Read32_MSBF(); m_vertexCount = inputStream.Read32_MSBF(); m_bytesPerVertex = inputStream.Read32_MSBF(); m_unknown1 = inputStream.Read32_MSBF(); ReadElements(inputStream); ReadStream(inputStream); }
// \brief Read segments (and general MeshGraph) given TiXmlDocument. void MeshGraph2D::ReadGeometry(TiXmlDocument &doc) { // Read mesh first MeshGraph::ReadGeometry(doc); TiXmlHandle docHandle(&doc); TiXmlElement* mesh = NULL; /// Look for all geometry related data in GEOMETRY block. mesh = docHandle.FirstChildElement("NEKTAR").FirstChildElement("GEOMETRY").Element(); ASSERTL0(mesh, "Unable to find GEOMETRY tag in file."); ReadCurves(doc); ReadEdges(doc); ReadElements(doc); ReadComposites(doc); ReadDomain(doc); }