fix the model xml
parent
3d4256a7a7
commit
972d8517b5
|
@ -240,13 +240,14 @@ void D3MFExporter::writeMesh( aiMesh *mesh ) {
|
||||||
writeVertex( mesh->mVertices[ i ] );
|
writeVertex( mesh->mVertices[ i ] );
|
||||||
}
|
}
|
||||||
mModelOutput << "</" << XmlTag::vertices << ">" << std::endl;
|
mModelOutput << "</" << XmlTag::vertices << ">" << std::endl;
|
||||||
mModelOutput << "</" << XmlTag::mesh << ">" << std::endl;
|
|
||||||
|
|
||||||
writeFaces( mesh );
|
writeFaces( mesh );
|
||||||
|
|
||||||
|
mModelOutput << "</" << XmlTag::mesh << ">" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
void D3MFExporter::writeVertex( const aiVector3D &pos ) {
|
void D3MFExporter::writeVertex( const aiVector3D &pos ) {
|
||||||
mModelOutput << "<" << XmlTag::vertex << " x=\"" << pos.x << "\" y=\"" << pos.y << "\" z=\"" << pos.z << "\">";
|
mModelOutput << "<" << XmlTag::vertex << " x=\"" << pos.x << "\" y=\"" << pos.y << "\" z=\"" << pos.z << "\" />";
|
||||||
mModelOutput << std::endl;
|
mModelOutput << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
~XmlSerializer() {
|
~XmlSerializer() {
|
||||||
|
// empty
|
||||||
}
|
}
|
||||||
|
|
||||||
void ImportXml(aiScene* scene) {
|
void ImportXml(aiScene* scene) {
|
||||||
|
|
Loading…
Reference in New Issue