summaryrefslogtreecommitdiff
path: root/CSXCAD/src
diff options
context:
space:
mode:
authorRuben Undheim <ruben.undheim@gmail.com>2016-07-09 11:12:02 +0200
committerRuben Undheim <ruben.undheim@gmail.com>2018-11-27 18:59:05 +0100
commit6744b4d48136d81438bf7c6fd107c4cc9b63891e (patch)
treec53a537188d19bc56d09cfe51dcf9a64bf96beb3 /CSXCAD/src
parent618fb1856dedb345f86c01d977787187ec1d4267 (diff)
Spelling fixes
Gbp-Pq: Name 0002-Spelling-fixes.patch
Diffstat (limited to 'CSXCAD/src')
-rw-r--r--CSXCAD/src/CSPrimPolyhedron.cpp4
-rw-r--r--CSXCAD/src/CSPrimPolyhedronReader.cpp2
-rw-r--r--CSXCAD/src/CSRectGrid.cpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/CSXCAD/src/CSPrimPolyhedron.cpp b/CSXCAD/src/CSPrimPolyhedron.cpp
index 7eac505..9583b7e 100644
--- a/CSXCAD/src/CSPrimPolyhedron.cpp
+++ b/CSXCAD/src/CSPrimPolyhedron.cpp
@@ -183,11 +183,11 @@ bool CSPrimPolyhedron::BuildTree()
{
m_Dimension = 2;
- //if structure is not closed due to invalud faces, mark it as 3D
+ //if structure is not closed due to invalid faces, mark it as 3D
if (m_InvalidFaces>0)
{
m_Dimension = 3;
- std::cerr << "CSPrimPolyhedron::BuildTree: Warning, found polyhedron has invalud faces and is not a closed surface, setting to 3D solid anyway!" << std::endl;
+ std::cerr << "CSPrimPolyhedron::BuildTree: Warning, found polyhedron has invalid faces and is not a closed surface, setting to 3D solid anyway!" << std::endl;
}
}
diff --git a/CSXCAD/src/CSPrimPolyhedronReader.cpp b/CSXCAD/src/CSPrimPolyhedronReader.cpp
index ed224fd..c88c67e 100644
--- a/CSXCAD/src/CSPrimPolyhedronReader.cpp
+++ b/CSXCAD/src/CSPrimPolyhedronReader.cpp
@@ -77,7 +77,7 @@ bool CSPrimPolyhedronReader::Write2XML(TiXmlElement &elem, bool parameterised)
elem.SetAttribute("FileType","PLY");
break;
default:
- elem.SetAttribute("FileType","Unkown");
+ elem.SetAttribute("FileType","Unknown");
break;
}
return CSPrimitives::Write2XML(elem,parameterised);
diff --git a/CSXCAD/src/CSRectGrid.cpp b/CSXCAD/src/CSRectGrid.cpp
index 50f2947..5b36dc2 100644
--- a/CSXCAD/src/CSRectGrid.cpp
+++ b/CSXCAD/src/CSRectGrid.cpp
@@ -78,7 +78,7 @@ std::string CSRectGrid::AddDiscLines(int direct, int numLines, double* vals, std
}
fParse.Parse(DistFunction,dirVar);
if (fParse.GetParseErrorType()!=FunctionParser::FP_NO_ERROR)
- return std::string("An error occured parsing f(") + dirVar + std::string(") - Parser message:\n") + std::string(fParse.ErrorMsg());
+ return std::string("An error occurred parsing f(") + dirVar + std::string(") - Parser message:\n") + std::string(fParse.ErrorMsg());
double dValue=0;
bool error=false;
@@ -88,7 +88,7 @@ std::string CSRectGrid::AddDiscLines(int direct, int numLines, double* vals, std
if (fParse.EvalError()!=0) error=true;
AddDiscLine(direct,dValue);
}
- if (error) return std::string("An error occured evaluation the grid function f(") + dirVar + std::string(")!");
+ if (error) return std::string("An error occurred evaluation the grid function f(") + dirVar + std::string(")!");
}
return "";
}