Merge pull request #1622 from assimp/fix_model_xml_3mf

fix the model xml
pull/1627/head
Kim Kulling 2017-12-07 19:23:03 +01:00 committed by GitHub
commit bd8d3025bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -240,13 +240,14 @@ void D3MFExporter::writeMesh( aiMesh *mesh ) {
writeVertex( mesh->mVertices[ i ] );
}
mModelOutput << "</" << XmlTag::vertices << ">" << std::endl;
mModelOutput << "</" << XmlTag::mesh << ">" << std::endl;
writeFaces( mesh );
mModelOutput << "</" << XmlTag::mesh << ">" << std::endl;
}
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;
}

View File

@ -72,7 +72,7 @@ public:
}
~XmlSerializer() {
// empty
}
void ImportXml(aiScene* scene) {