From 486e43a450a158a9e5314a1fa954897c450b3a20 Mon Sep 17 00:00:00 2001 From: Rylie Pavlik Date: Fri, 13 May 2022 16:50:40 -0500 Subject: [PATCH] Codespell fix --- src/draw.cpp | 2 +- src/mesh.cpp | 2 +- src/platform/guihtml.cpp | 2 +- src/platform/html/filemanagerui.js | 4 ++-- src/platform/html/solvespaceui.js | 4 ++-- src/srf/raycast.cpp | 2 +- src/view.cpp | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/draw.cpp b/src/draw.cpp index 9fa964fab..fe4cfe68a 100644 --- a/src/draw.cpp +++ b/src/draw.cpp @@ -241,7 +241,7 @@ void GraphicsWindow::SelectByMarquee() { } //----------------------------------------------------------------------------- -// Sort the selection according to various critieria: the entities and +// Sort the selection according to various criteria: the entities and // constraints separately, counts of certain types of entities (circles, // lines, etc.), and so on. //----------------------------------------------------------------------------- diff --git a/src/mesh.cpp b/src/mesh.cpp index 57377d0cc..1280a11a4 100644 --- a/src/mesh.cpp +++ b/src/mesh.cpp @@ -16,7 +16,7 @@ void SMesh::AddTriangle(STriMeta meta, Vector n, Vector a, Vector b, Vector c) { Vector ab = b.Minus(a), bc = c.Minus(b); Vector np = ab.Cross(bc); if(np.Magnitude() < 1e-10) { - // ugh; gl sometimes tesselates to collinear triangles + // ugh; gl sometimes tessellates to collinear triangles return; } if(np.Dot(n) > 0) { diff --git a/src/platform/guihtml.cpp b/src/platform/guihtml.cpp index 7e49cc981..1f61b2801 100644 --- a/src/platform/guihtml.cpp +++ b/src/platform/guihtml.cpp @@ -1270,7 +1270,7 @@ MessageDialogRef CreateMessageDialog(WindowRef parentWindow) { // File dialogs //----------------------------------------------------------------------------- -// In emscripten psuedo filesystem, all userdata will be stored in this directory. +// In emscripten pseudo filesystem, all userdata will be stored in this directory. static std::string basePathInFilesystem = "/data/"; diff --git a/src/platform/html/filemanagerui.js b/src/platform/html/filemanagerui.js index f82499b0e..c48e1a582 100644 --- a/src/platform/html/filemanagerui.js +++ b/src/platform/html/filemanagerui.js @@ -130,7 +130,7 @@ class FileManagerUI { dialog.appendChild(filelist); const dummyfilelistitem = document.createElement('li'); - dummyfilelistitem.textContent = "(No file in psuedo filesystem)"; + dummyfilelistitem.textContent = "(No file in pseudo filesystem)"; filelist.appendChild(dummyfilelistitem); if (this.__isOpenDialog) { @@ -341,7 +341,7 @@ class FileManagerUI { const files = this.__getFileEntries_recurse(this.__basePathInFilesystem); if (files.length < 1) { const dummyfilelistitem = document.createElement('li'); - dummyfilelistitem.textContent = "(No file in psuedo filesystem)"; + dummyfilelistitem.textContent = "(No file in pseudo filesystem)"; this.__filelistElement.appendChild(dummyfilelistitem); } else { diff --git a/src/platform/html/solvespaceui.js b/src/platform/html/solvespaceui.js index edcca32ed..80af24594 100644 --- a/src/platform/html/solvespaceui.js +++ b/src/platform/html/solvespaceui.js @@ -423,7 +423,7 @@ window.addEventListener('keyup', function(event) { }); -// FIXME(emscripten): Should be implemnted in guihtmlcpp ? +// FIXME(emscripten): Should be implemented in guihtmlcpp ? class FileUploadHelper { constructor() { this.modalRoot = document.createElement("div"); @@ -583,7 +583,7 @@ function createFileUploadHelperInstance() { return new FileUploadHelper(); } -// FIXME(emscripten): Should be implemnted in guihtmlcpp ? +// FIXME(emscripten): Should be implemented in guihtmlcpp ? class FileDownloadHelper { constructor() { this.modalRoot = document.createElement("div"); diff --git a/src/srf/raycast.cpp b/src/srf/raycast.cpp index bde17d1f0..acbcd8fdc 100644 --- a/src/srf/raycast.cpp +++ b/src/srf/raycast.cpp @@ -530,7 +530,7 @@ bool SShell::ClassifyEdge(Class *indir, Class *outdir, SBspUv::Class c = (srf.bsp) ? srf.bsp->ClassifyPoint(puv, dummy, &srf) : SBspUv::Class::OUTSIDE; if(c == SBspUv::Class::OUTSIDE) continue; - // Edge-on-face (unless edge-on-edge above superceded) + // Edge-on-face (unless edge-on-edge above superseded) Point2d pin, pout; srf.ClosestPointTo(p.Plus(edge_n_in), &pin, /*mustConverge=*/false); srf.ClosestPointTo(p.Plus(edge_n_out), &pout, /*mustConverge=*/false); diff --git a/src/view.cpp b/src/view.cpp index 99067bc53..5f6de3299 100644 --- a/src/view.cpp +++ b/src/view.cpp @@ -1,5 +1,5 @@ //----------------------------------------------------------------------------- -// The View menu, stuff to snap to certain special vews of the model, and to +// The View menu, stuff to snap to certain special views of the model, and to // display our current view of the model to the user. // // Copyright 2008-2013 Jonathan Westhues.