From b64882f4c705ed2d5d9db64cd028afbbef128043 Mon Sep 17 00:00:00 2001 From: Andy Maloney Date: Tue, 11 Apr 2017 16:33:13 -0400 Subject: [PATCH] Fix spelling --- code/X3DImporter_Postprocess.cpp | 4 ++-- include/assimp/mesh.h | 2 +- test/unit/utExport.cpp | 2 +- tools/assimp_qt_viewer/glview.cpp | 4 ++-- tools/assimp_view/MaterialManager.h | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/code/X3DImporter_Postprocess.cpp b/code/X3DImporter_Postprocess.cpp index 6ae47b736..eb297e654 100644 --- a/code/X3DImporter_Postprocess.cpp +++ b/code/X3DImporter_Postprocess.cpp @@ -627,10 +627,10 @@ void X3DImporter::Postprocess_BuildNode(const CX3DImporter_NodeElement& pNodeEle } else { - for(size_t i = 0; i < (size_t)tne_group.Choice; i++) chit_begin++;// forward iterator to choosen node. + for(size_t i = 0; i < (size_t)tne_group.Choice; i++) chit_begin++;// forward iterator to chosen node. chit_end = chit_begin; - chit_end++;// point end iterator to next element after choosen. + chit_end++;// point end iterator to next element after chosen node. } }// if(tne_group.UseChoice) }// if(pNodeElement.Type == CX3DImporter_NodeElement::ENET_Group) diff --git a/include/assimp/mesh.h b/include/assimp/mesh.h index 8ba8d1221..ef2c8838b 100644 --- a/include/assimp/mesh.h +++ b/include/assimp/mesh.h @@ -55,7 +55,7 @@ extern "C" { // --------------------------------------------------------------------------- // Limits. These values are required to match the settings Assimp was -// compiled against. Therfore, do not redefine them unless you build the +// compiled against. Therefore, do not redefine them unless you build the // library from source using the same definitions. // --------------------------------------------------------------------------- diff --git a/test/unit/utExport.cpp b/test/unit/utExport.cpp index f34429338..f810e3dce 100644 --- a/test/unit/utExport.cpp +++ b/test/unit/utExport.cpp @@ -77,7 +77,7 @@ TEST_F(ExporterTest, testCExportInterface) for(size_t i = 0; i < aiGetExportFormatCount(); ++i) { const aiExportFormatDesc* const desc = aiGetExportFormatDescription(i); EXPECT_TRUE(desc); - // rest has aleady been validated by testCppExportInterface + // rest has already been validated by testCppExportInterface } } diff --git a/tools/assimp_qt_viewer/glview.cpp b/tools/assimp_qt_viewer/glview.cpp index 2d1e07a98..1de8199fa 100644 --- a/tools/assimp_qt_viewer/glview.cpp +++ b/tools/assimp_qt_viewer/glview.cpp @@ -715,7 +715,7 @@ void CGLView::SetScene(const aiScene *pScene, const QString& pScenePath) mHelper_Mesh_Quantity = mScene->mNumMeshes; mHelper_Mesh = new SHelper_Mesh*[mScene->mNumMeshes]; - // Walk thru the meshes and extract needed data and, also calculate BBox. + // Walk through the meshes and extract needed data and, also calculate BBox. for(size_t idx_mesh = 0; idx_mesh < mScene->mNumMeshes; idx_mesh++) { aiMesh& mesh_cur = *mScene->mMeshes[idx_mesh]; @@ -793,7 +793,7 @@ void CGLView::SetScene(const aiScene *pScene, const QString& pScenePath) // // Scene BBox // - // For calculating right BBox we must walk thru all nodes and apply transformation to meshes BBoxes + // For calculating right BBox we must walk through all nodes and apply transformation to meshes BBoxes if(mHelper_Mesh_Quantity > 0) { bool first_assign = true; diff --git a/tools/assimp_view/MaterialManager.h b/tools/assimp_view/MaterialManager.h index d1c9eb507..17e133821 100644 --- a/tools/assimp_view/MaterialManager.h +++ b/tools/assimp_view/MaterialManager.h @@ -178,7 +178,7 @@ namespace AssimpView // Convert a height map to a normal map if necessary // // The function tries to detect the type of a texture automatically. - // However, this wont work in every case. + // However, this won't work in every case. void HMtoNMIfNecessary( IDirect3DTexture9* piTexture, IDirect3DTexture9** piTextureOut, bool bWasOriginallyHM = true );