Fix various typos (#1837)

Found via `codespell`
This commit is contained in:
luzpaz
2021-10-28 17:56:02 -04:00
committed by GitHub
parent b46f1647d2
commit 0aa8a19b6d
10 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -220,7 +220,7 @@ void ColladaSerializer::ColladaExporter::ColladaScene::add(
COLLADASW::InstanceGeometry instanceGeometry(mSW);
instanceGeometry.setUrl("#" + geom_name);
BOOST_FOREACH(const std::string &material_name, material_ids) {
// Unescape to avoid double escaping beucase OpenCollada's material URI parameter escapes XML internally
// Unescape to avoid double escaping because OpenCollada's material URI parameter escapes XML internally
std::string unescaped = material_name;
IfcUtil::unescape_xml(unescaped);
@@ -371,7 +371,7 @@ void ColladaSerializer::ColladaExporter::ColladaMaterials::write() {
std::string material_name = getMaterialUri(material);
openMaterial(material_name);
// Unescape to avoid double escaping beucase OpenCollada's addInstanceEffect escapes XML internally
// Unescape to avoid double escaping because OpenCollada's addInstanceEffect escapes XML internally
IfcUtil::unescape_xml(material_name);
addInstanceEffect("#" + material_name + "-fx");
+2 -2
View File
@@ -931,7 +931,7 @@ void SvgSerializer::write(const geometry_data& data) {
TopoDS_Shape* compound_to_hlr = &compound_to_use;
TopoDS_Shape subtracted_shape;
if (any_in_front && any_behind && data.product->declaration().is("IfcSlab") && is_floor_plan_) {
// This is currently ony for slanted roof slabs on floor plans
// This is currently only for slanted roof slabs on floor plans
bool should_cut = false;
TopExp_Explorer exp(compound_to_use, TopAbs_FACE);
for (; exp.More(); exp.Next()) {
@@ -1382,7 +1382,7 @@ void SvgSerializer::write(const geometry_data& data) {
const gp_Pnt& pa = points[i];
const gp_Pnt& pb = points[j];
// Since the text is always displayed horizontally,
// the distance is not simply euclidian, but we
// the distance is not simply euclidean, but we
// favour the x-component;
const double d = std::sqrt(
10 * ((pa.X() - pb.X()) * (pa.X() - pb.X())) +