Skip to content

Commit d78c917

Browse files
luzpazaothms
authored andcommitted
Misc. typos
Found via `codespell -q 3`
1 parent c2f4c2c commit d78c917

File tree

12 files changed

+20
-20
lines changed

12 files changed

+20
-20
lines changed

src/examples/IfcOpenHouse.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ int main() {
240240
file.addBuildingProduct(west_wall);
241241

242242
// The west wall is assigned an opening element we created for the south wall, opening elements are
243-
// not shared accross building elements, even if they share the same representation. Hence, the east
243+
// not shared across building elements, even if they share the same representation. Hence, the east
244244
// wall will not feature this opening.
245245
// NB: an Opening Element can only be used to create a single void within a single Element, as per:
246246
// http://www.buildingsmart-tech.org/ifc/IFC2x3/TC1/html/ifcproductextension/lexical/ifcfeatureelementsubtraction.htm
@@ -412,7 +412,7 @@ int main() {
412412
// Therefore we will construct the window as a decomposition of beams and a plate, in which
413413
// only the plate will have a transparent material assigned.
414414

415-
// The window frame will consists of four seperate beams.
415+
// The window frame will consists of four separate beams.
416416
// AutoCAD Architecture will create an internal window type for the IfcWindow created.
417417
// Therefore the OverallWidth and OverallHeight of the window attributes will need to
418418
// match the bounding box of the representation. Furthermore, the window placement needs
@@ -463,10 +463,10 @@ int main() {
463463
);
464464
file.addBuildingProduct(window);
465465

466-
// Initalize a list of parts for the window to be composed of
466+
// Initialize a list of parts for the window to be composed of
467467
IfcSchema::IfcObjectDefinition::list::ptr window_parts(new IfcTemplatedEntityList<IfcSchema::IfcObjectDefinition>());
468468

469-
// The placements for the beams are not shared accross the different windows because every
469+
// The placements for the beams are not shared across the different windows because every
470470
// beam is placed relative to its parent window entity.
471471
IfcSchema::IfcLocalPlacement::list::ptr frame_placements (new IfcTemplatedEntityList<IfcSchema::IfcLocalPlacement>());
472472
frame_placements->push(file.addLocalPlacement(storey_placement, 930,45));

src/ifcconvert/IfcConvert.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ int main(int argc, char** argv)
257257
"Not guaranteed to work properly if used with --weld-vertices.")
258258
("filter-file", po::value<std::string>(&filter_filename),
259259
"Specifies a filter file that describes the used filtering criteria. Supported formats "
260-
"are '--include=arg GlobalId ...' and 'include arg GlobalId ...'. Spaces and tabs can be used as delimeters."
260+
"are '--include=arg GlobalId ...' and 'include arg GlobalId ...'. Spaces and tabs can be used as delimiters."
261261
"Multiple filters of same type with different values can be inserted on their own lines. "
262262
"See --include, --include+, --exclude, and --exclude+ for more details.");
263263

src/ifcconvert/XmlSerializer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ void XmlSerializer::finalize() {
464464

465465
// Layer assignments. IfcPresentationLayerAssignments don't have GUIDs (only optional Identifier)
466466
// so use names as the IDs and only insert those with unique names. In case of possible duplicate names/IDs
467-
// the first IfcPresentationLayerAssignment occurence takes precedence.
467+
// the first IfcPresentationLayerAssignment occurrence takes precedence.
468468
std::set<std::string> layer_names;
469469
IfcPresentationLayerAssignment::list::ptr layer_assignments = file->entitiesByType<IfcPresentationLayerAssignment>();
470470
for (IfcPresentationLayerAssignment::list::it it = layer_assignments->begin(); it != layer_assignments->end(); ++it) {

src/ifcgeom/IfcGeom.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,12 @@ class IFC_GEOM_API Kernel {
139139
// Default: 0.001m / 1mm
140140
GV_DEFLECTION_TOLERANCE,
141141
// Specifies the tolerance of the wire builder, most notably for trimmed curves
142-
// Defailt: 0.0001m / 0.1mm
142+
// Default: 0.0001m / 0.1mm
143143
GV_WIRE_CREATION_TOLERANCE,
144144
// Specifies the minimal area of a face to be included in an IfcConnectedFaceset
145145
// Read-only
146146
GV_MINIMAL_FACE_AREA,
147-
// Specifies the treshold distance under which cartesian points are deemed equal
147+
// Specifies the threshold distance under which cartesian points are deemed equal
148148
// Default: 0.00001m / 0.01mm
149149
GV_POINT_EQUALITY_TOLERANCE,
150150
// Specifies maximum number of faces for a shell to be sewed. Sewing shells

src/ifcgeom/IfcGeomFunctions.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -675,10 +675,10 @@ bool IfcGeom::Kernel::convert_curve_to_wire(const Handle(Geom_Curve)& curve, Top
675675
if (e.GetMessageString() && strlen(e.GetMessageString())) {
676676
Logger::Error(e.GetMessageString());
677677
} else {
678-
Logger::Error("Unknown error convering curve to wire");
678+
Logger::Error("Unknown error converting curve to wire");
679679
}
680680
} catch (...) {
681-
Logger::Error("Unknown error convering curve to wire");
681+
Logger::Error("Unknown error converting curve to wire");
682682
}
683683
return false;
684684
}
@@ -2539,7 +2539,7 @@ bool IfcGeom::Kernel::project(const Handle_Geom_Surface& srf, const TopoDS_Shape
25392539
return false;
25402540
}
25412541

2542-
// Add a little bit of resulution so that the median is shifted towards the mass
2542+
// Add a little bit of resolution so that the median is shifted towards the mass
25432543
// of the curve. This helps to find the parameter ordering for conic surfaces.
25442544
for (TopExp_Explorer exp(shp, TopAbs_EDGE); exp.More(); exp.Next(), ++vertex_count) {
25452545
const TopoDS_Edge& e = TopoDS::Edge(exp.Current());

src/ifcgeom/IfcGeomIterator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ namespace IfcGeom {
349349
// Move to the next IfcRepresentation
350350
void _nextShape() {
351351
// In order to conserve memory and reduce cache insertion times, the cache is
352-
// cleared after an arbitary number of processed representations. This has been
352+
// cleared after an arbitrary number of processed representations. This has been
353353
// benchmarked extensively: https://github.com/IfcOpenShell/IfcOpenShell/pull/47
354354
static const int clear_interval = 64;
355355
if (done % clear_interval == clear_interval - 1) {
@@ -437,7 +437,7 @@ namespace IfcGeom {
437437

438438
IfcSchema::IfcRepresentation* representation_mapped_to = kernel.representation_mapped_to(representation);
439439
if (representation_mapped_to) {
440-
// Check if this represenation has (or will be) processed as part its mapped representation
440+
// Check if this representation has (or will be) processed as part its mapped representation
441441
representation_processed_as_mapped_item = ok_mapped_representations->contains(representation_mapped_to) ||
442442
reuse_ok_(kernel.products_represented_by(representation_mapped_to));
443443
}

src/ifcgeom/IfcGeomWires.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcCompositeCurve* l, TopoDS_Wire
304304
use_radians = true;
305305
} else {
306306
// No heuristic left to prefer the one over the other,
307-
// apparently both variants are equally succesful.
307+
// apparently both variants are equally successful.
308308
// The curve might be composed of only straight segments.
309309
// Let's go with the wire created using radians as that
310310
// at least is a SI unit.

src/ifcmax/IfcMax.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ int IFCImp::DoImport(const TCHAR *name, ImpInterface *impitfc, Interface *itfc,
294294
tri->mesh.buildNormals();
295295
// Either use this or undefine the FACESETS_AS_COMPOUND option in IfcGeom.h to have
296296
// properly oriented normals. Using only the line below will result in a consistent
297-
// orientation of normals accross shells, but not always oriented towards the
297+
// orientation of normals across shells, but not always oriented towards the
298298
// outside.
299299
// tri->mesh.UnifyNormals(false);
300300
tri->mesh.BuildStripsAndEdges();

src/ifcopenshell-python/ifcopenshell/entity_instance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def get_info_(inst):
196196
attr_value = entity_instance.walk(is_instance, get_info_, attr_value)
197197
yield self.attribute_name(i), attr_value
198198
except BaseException:
199-
logging.exception("unhandled exception occured setting attribute name for {}".format(self))
199+
logging.exception("unhandled exception occurred setting attribute name for {}".format(self))
200200

201201
return return_type(_())
202202

src/ifcparse/IfcWrite.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ namespace IfcWrite {
8080
boost::dynamic_bitset<>,
8181
// An enumeration argument, e.g. .USERDEFINED.
8282
// To initialize the argument a string representation
83-
// has to be explicitely passed of the enumeration value
83+
// has to be explicitly passed of the enumeration value
8484
// which is stored internally as an integer. The argument
8585
// itself does not keep track of what schema enumeration
8686
// type is represented.

0 commit comments

Comments
 (0)