From 4033fac1b36706a9d7f4b604df8109f51f14cc4e Mon Sep 17 00:00:00 2001 From: luz paz Date: Fri, 25 Mar 2022 18:21:48 -0400 Subject: [PATCH] Fix various typos Found via `codespell -q 3 -S ./external_dependencies/pybind11 -L alledges,allright,ane,anormal,ans,apoints,ba,boxs,cancle,childs,co-ordinate,co-ordinates,daty,enty,filld,hel,identifyable,ist,linz,lod,ned,nd,selt,statics,suround,thev,thist,thisy,timere,upto,wel` --- cmake/SuperBuild.cmake | 4 ++-- doc/ng4.tex | 14 +++++++------- libsrc/core/archive.hpp | 2 +- libsrc/core/flags.cpp | 2 +- libsrc/core/hashtable.hpp | 2 +- libsrc/core/simd_avx.hpp | 2 +- libsrc/csg/curve2d.hpp | 2 +- libsrc/csg/edgeflw.cpp | 20 ++++++++++---------- libsrc/csg/explicitcurve2d.hpp | 2 +- libsrc/csg/identify.cpp | 22 +++++++++++----------- libsrc/csg/identify.hpp | 12 ++++++------ libsrc/csg/singularref.hpp | 2 +- libsrc/csg/specpoin.hpp | 2 +- libsrc/csg/surface.cpp | 6 +++--- libsrc/general/ngarray.cpp | 2 +- libsrc/general/table.hpp | 2 +- libsrc/geom2d/csg2d.cpp | 8 ++++---- libsrc/include/nginterface.h | 2 +- libsrc/meshing/basegeom.cpp | 4 ++-- libsrc/meshing/boundarylayer.cpp | 2 +- libsrc/meshing/delaunay2d.cpp | 2 +- libsrc/meshing/hprefinement.cpp | 6 +++--- libsrc/meshing/meshclass.cpp | 2 +- libsrc/meshing/meshclass.hpp | 6 +++--- libsrc/meshing/meshfunc.cpp | 6 +++--- libsrc/meshing/meshtype.cpp | 6 +++--- libsrc/meshing/meshtype.hpp | 2 +- libsrc/meshing/parallelmesh.cpp | 6 +++--- libsrc/meshing/topology.cpp | 10 +++++----- libsrc/occ/Partition_Inter2d.cxx | 6 +++--- libsrc/occ/Partition_Inter3d.cxx | 4 ++-- libsrc/occ/Partition_Spliter.cxx | 8 ++++---- libsrc/occ/occgeom.cpp | 8 ++++---- libsrc/occ/occmeshsurf.cpp | 2 +- libsrc/occ/python_occ_shapes.cpp | 2 +- libsrc/stlgeom/stlgeom.hpp | 2 +- libsrc/stlgeom/stltopology.cpp | 2 +- libsrc/visualization/visualpkg.cpp | 2 +- libsrc/visualization/vssolution.cpp | 12 ++++++------ ng/Togl-1.7/README.stubs | 4 ++-- ng/Togl-1.7/Togl.html | 4 ++-- ng/Togl2.1/README.bin | 2 +- ng/Togl2.1/README.stubs | 4 ++-- ng/Togl2.1/doc/stereo.html | 2 +- ng/Togl2.1/doc/tclapi.html | 2 +- ng/Togl2.1/doc/using.html | 2 +- ng/Togl2.1/togl.c | 4 ++-- ng/csgeom.tcl | 2 +- ng/dialog.tcl | 2 +- ng/menustat.tcl | 2 +- ng/onetcl.cpp | 2 +- nglib/ng_stl.cpp | 4 ++-- py_tutorials/merge.py | 6 +++--- tutorials/cubeandspheres.geo | 2 +- 54 files changed, 126 insertions(+), 126 deletions(-) diff --git a/cmake/SuperBuild.cmake b/cmake/SuperBuild.cmake index b004a135..e25676b2 100644 --- a/cmake/SuperBuild.cmake +++ b/cmake/SuperBuild.cmake @@ -1,7 +1,7 @@ include (ExternalProject) -option( BUILD_ZLIB "Build and link static version of zlib (usefull for pip binaries)" OFF ) -option( BUILD_OCC "Build and link static version of occ (usefull for pip binaries)" OFF ) +option( BUILD_ZLIB "Build and link static version of zlib (useful for pip binaries)" OFF ) +option( BUILD_OCC "Build and link static version of occ (useful for pip binaries)" OFF ) set_property (DIRECTORY PROPERTY EP_PREFIX dependencies) set (NETGEN_DEPENDENCIES) diff --git a/doc/ng4.tex b/doc/ng4.tex index a63e92e1..0a918fe5 100644 --- a/doc/ng4.tex +++ b/doc/ng4.tex @@ -176,7 +176,7 @@ Lines starting with $\#$ are comment lines. Every CSG file must contain the keyword {\tt algebraic3d} before any non-comment line. The keyword {\tt solid} defines a named solid, here the solid {\it cube} is defined. A solid is defined by the Eulerian operations applied to -primitives. Here, the solid is just the primitve defined by {\tt orthobrick}. +primitives. Here, the solid is just the primitive defined by {\tt orthobrick}. This is a brick parallel to the axis, specified by the minimal $x$, $y$, and $z$ coordinates, and the maximal $x$, $y$, and $z$ coordinates. The present definition gives the cube $[0,1]^3$. Finally, the definition {\tt tlo cube} @@ -260,7 +260,7 @@ amount of red, green and blue (RGB) values. The flag {\tt -transparent} makes the solid appear transparent. -It is possible to specify bounday condition numbers for individual +It is possible to specify boundary condition numbers for individual surfaces of a solid. The flag {\tt -bc} assigns the bc to all surfaces of that solid-tree. If several flags are given the one closest to the leaves of the tree dominates. The following file defines a @@ -536,7 +536,7 @@ STL is a standardized file format to describe (approximate) geometies by triangulated surfaces. It is useful to describe complicated parts which are modeled with some CAD programmes. Also, some users have written their own (C) programmes to define STL geometries, where was not so easy -to use the CSG format. The syntac of STL files is as follos +to use the CSG format. The syntax of STL files is as follows \begin{quote} (not available yet. please figure out the syntax from the examples) \end{quote} @@ -593,10 +593,10 @@ Finally, the refinement factor along the line follows. \chapter{Mesh and Solution Formats} You can export meshes to a couple of file formats. Some are self-defined, -some other are standard formats. The self-defined are the followings: +some other are standard formats. The self-defined are the following: \section{Mesh Size File} -By means of a mesh size file you can provide a local mesh size density. The file extension must be {\it .msz}. If you want to use the mesh size file, you specify it in the ``Meshing Options'', doalog box, page ``Mesh Size''. +By means of a mesh size file you can provide a local mesh size density. The file extension must be {\it .msz}. If you want to use the mesh size file, you specify it in the ``Meshing Options'', dialog box, page ``Mesh Size''. The syntay is: \begin{verbatim} @@ -643,7 +643,7 @@ The Fepp 2D format contains the following sections: \begin{enumerate} \item -boundary segmetns \\ +boundary segments \\ After the number of boundary segments there follows a list of segments. Each segment is specified by the spline - patch number, and the two node indices. Counting starts with 1 @@ -749,7 +749,7 @@ the bottom, and the large drawing window. The menu items will be explained in \item Quit \newline Terminate Netgen \item Generate mesh \newline -Performe mesh generation +Perform mesh generation \item Stop Meshing \newline Stop mesh generation \item Geometry/Edges/Mesh/Solution \newline diff --git a/libsrc/core/archive.hpp b/libsrc/core/archive.hpp index f841bb14..4271e725 100644 --- a/libsrc/core/archive.hpp +++ b/libsrc/core/archive.hpp @@ -466,7 +466,7 @@ namespace ngcore // -1 restores a new shared ptr by restoring the inner pointer and creating a shared_ptr to it if (nr == -1) { - logger->debug("Createing new shared_ptr"); + logger->debug("Creating new shared_ptr"); T* p = nullptr; bool neededDowncast; (*this) & neededDowncast & p; diff --git a/libsrc/core/flags.cpp b/libsrc/core/flags.cpp index e3d845cf..89fa69b5 100644 --- a/libsrc/core/flags.cpp +++ b/libsrc/core/flags.cpp @@ -605,7 +605,7 @@ namespace ngcore } else { - // to be cleand up ... + // to be cleaned up ... Array strs; posbrack++; diff --git a/libsrc/core/hashtable.hpp b/libsrc/core/hashtable.hpp index 29f35858..9791749e 100644 --- a/libsrc/core/hashtable.hpp +++ b/libsrc/core/hashtable.hpp @@ -500,7 +500,7 @@ namespace ngcore for (int i = 0; i < table[bnr].Size(); i++) if (table[bnr][i].first == ind) return i; - throw Exception ("Ask for unsused hash-value"); + throw Exception ("Ask for unused hash-value"); } T & operator[] (T_HASH ahash) diff --git a/libsrc/core/simd_avx.hpp b/libsrc/core/simd_avx.hpp index 37a0bab8..c34c15aa 100644 --- a/libsrc/core/simd_avx.hpp +++ b/libsrc/core/simd_avx.hpp @@ -141,7 +141,7 @@ namespace ngcore NETGEN_INLINE double operator[] (int i) const { return ((double*)(&data))[i]; } NETGEN_INLINE double & operator[] (int i) { return ((double*)(&data))[i]; } - // [[deprecated("don't write to individual elments of SIMD")]] + // [[deprecated("don't write to individual elements of SIMD")]] // NETGEN_INLINE double & operator[] (int i) { return ((double*)(&data))[i]; } template double Get() const { return ((double*)(&data))[I]; } diff --git a/libsrc/csg/curve2d.hpp b/libsrc/csg/curve2d.hpp index 066a40ad..e9a3690c 100644 --- a/libsrc/csg/curve2d.hpp +++ b/libsrc/csg/curve2d.hpp @@ -13,7 +13,7 @@ namespace netgen /* - 2D Curve repesentation + 2D Curve representation */ diff --git a/libsrc/csg/edgeflw.cpp b/libsrc/csg/edgeflw.cpp index 6746ecf8..26d5172d 100644 --- a/libsrc/csg/edgeflw.cpp +++ b/libsrc/csg/edgeflw.cpp @@ -180,7 +180,7 @@ namespace netgen pi1 = 0; copyedge = 0; - // identifyable point available ? + // identifiable point available ? for (int i = 0; i < geometry.identifications.Size() && !pi1; i++) @@ -191,8 +191,8 @@ namespace netgen << ", v = " << specpoints[startpoints[j]].v << " for copying (i,j = " << i << ", " << j << ")" << endl; #endif - if (geometry.identifications[i]->IdentifyableCandidate (specpoints[startpoints[j]]) && - geometry.identifications[i]->IdentifyableCandidate (specpoints[endpoints[j]])) + if (geometry.identifications[i]->IdentifiableCandidate (specpoints[startpoints[j]]) && + geometry.identifications[i]->IdentifiableCandidate (specpoints[endpoints[j]])) { @@ -201,7 +201,7 @@ namespace netgen for (int k = 0; k < hsp.Size() && !pi1; k++) { - //(*testout) << " ? identifyable with " << specpoints[hsp[k]].p + //(*testout) << " ? identifiable with " << specpoints[hsp[k]].p //<< ", v = " << specpoints[hsp[k]].v // << endl; if (identification_used.Used (INDEX_2(i, startpoints[j])) || @@ -212,12 +212,12 @@ namespace netgen } if (geometry.identifications[i] - ->Identifyable(specpoints[startpoints[j]], specpoints[hsp[k]], specpoint2tlo, specpoint2surface) || + ->Identifiable(specpoints[startpoints[j]], specpoints[hsp[k]], specpoint2tlo, specpoint2surface) || geometry.identifications[i] - ->Identifyable(specpoints[hsp[k]], specpoints[startpoints[j]], specpoint2tlo, specpoint2surface)) + ->Identifiable(specpoints[hsp[k]], specpoints[startpoints[j]], specpoint2tlo, specpoint2surface)) { #ifdef DEVELOP - (*testout) << "identifyable: " << specpoints[hsp[k]].p << ", v = " << specpoints[hsp[k]].v + (*testout) << "identifiable: " << specpoints[hsp[k]].p << ", v = " << specpoints[hsp[k]].v << " and " << specpoints[startpoints[j]].p << ", v = " << specpoints[startpoints[j]].v << " (identification " << i+1 << ")" << endl; #endif @@ -245,7 +245,7 @@ namespace netgen } - // cannot copy from other ege ? + // cannot copy from other edge ? if (!pi1) checkedcopy = startpoints.Size(); @@ -1680,9 +1680,9 @@ namespace netgen (*geometry.identifications.Get(copyedgeidentification)); - if (csi.Identifyable (mesh[frompi], mesh[topi])) + if (csi.Identifiable (mesh[frompi], mesh[topi])) mesh.GetIdentifications().Add(frompi, topi, copyedgeidentification); - else if (csi.Identifyable (mesh[topi], mesh[frompi])) + else if (csi.Identifiable (mesh[topi], mesh[frompi])) mesh.GetIdentifications().Add(topi, frompi, copyedgeidentification); else { diff --git a/libsrc/csg/explicitcurve2d.hpp b/libsrc/csg/explicitcurve2d.hpp index e6d30344..c0fbe5a9 100644 --- a/libsrc/csg/explicitcurve2d.hpp +++ b/libsrc/csg/explicitcurve2d.hpp @@ -13,7 +13,7 @@ namespace netgen /* - Explicit 2D Curve repesentation + Explicit 2D Curve representation */ diff --git a/libsrc/csg/identify.cpp b/libsrc/csg/identify.cpp index e8dbb8fd..08e7c027 100644 --- a/libsrc/csg/identify.cpp +++ b/libsrc/csg/identify.cpp @@ -36,24 +36,24 @@ void Identification :: IdentifySpecialPoints (NgArray & poin int Identification :: -Identifyable (const SpecialPoint & sp1, const SpecialPoint & sp2, +Identifiable (const SpecialPoint & sp1, const SpecialPoint & sp2, const TABLE & specpoint2solid, const TABLE & specpoint2surface) const { - cout << "Identification::Identifyable called for base-class" << endl; + cout << "Identification::Identifiable called for base-class" << endl; return 0; } int Identification :: -Identifyable (const Point<3> & p1, const Point<3> & sp2) const +Identifiable (const Point<3> & p1, const Point<3> & sp2) const { - cout << "Identification::Identifyable called for base-class" << endl; + cout << "Identification::Identifiable called for base-class" << endl; return 0; } int Identification :: -IdentifyableCandidate (const SpecialPoint & sp1) const +IdentifiableCandidate (const SpecialPoint & sp1) const { return 1; } @@ -196,7 +196,7 @@ void PeriodicIdentification :: IdentifySpecialPoints */ int PeriodicIdentification :: -Identifyable (const SpecialPoint & sp1, const SpecialPoint & sp2, +Identifiable (const SpecialPoint & sp1, const SpecialPoint & sp2, const TABLE & specpoint2solid, const TABLE & specpoint2surface) const { @@ -252,7 +252,7 @@ Identifyable (const SpecialPoint & sp1, const SpecialPoint & sp2, } int PeriodicIdentification :: -Identifyable (const Point<3> & p1, const Point<3> & p2) const +Identifiable (const Point<3> & p1, const Point<3> & p2) const { return (s1->PointOnSurface (p1) && s2->PointOnSurface (p2)); @@ -672,7 +672,7 @@ void CloseSurfaceIdentification :: IdentifySpecialPoints */ int CloseSurfaceIdentification :: -Identifyable (const SpecialPoint & sp1, const SpecialPoint & sp2, +Identifiable (const SpecialPoint & sp1, const SpecialPoint & sp2, const TABLE & specpoint2solid, const TABLE & specpoint2surface) const { @@ -830,7 +830,7 @@ Identifyable (const SpecialPoint & sp1, const SpecialPoint & sp2, } int CloseSurfaceIdentification :: -Identifyable (const Point<3> & p1, const Point<3> & p2) const +Identifiable (const Point<3> & p1, const Point<3> & p2) const { // if (domain) // if (!domain->GetSolid()->IsIn (p1) || !domain->GetSolid()->IsIn (p2)) @@ -842,7 +842,7 @@ Identifyable (const Point<3> & p1, const Point<3> & p2) const int CloseSurfaceIdentification :: -IdentifyableCandidate (const SpecialPoint & sp1) const +IdentifiableCandidate (const SpecialPoint & sp1) const { if (domain) if (!domain->GetSolid()->IsIn (sp1.p)) @@ -1544,7 +1544,7 @@ void CloseEdgesIdentification :: IdentifySpecialPoints */ int CloseEdgesIdentification :: -Identifyable (const SpecialPoint & sp1, const SpecialPoint & sp2, +Identifiable (const SpecialPoint & sp1, const SpecialPoint & sp2, const TABLE & specpoint2solid, const TABLE & specpoint2surface) const { diff --git a/libsrc/csg/identify.hpp b/libsrc/csg/identify.hpp index abd63c6c..bd9c2165 100644 --- a/libsrc/csg/identify.hpp +++ b/libsrc/csg/identify.hpp @@ -38,13 +38,13 @@ namespace netgen /// can identify both special points (fixed direction) /// (identified points, same tangent) - virtual int Identifyable (const SpecialPoint & sp1, const SpecialPoint & sp2, + virtual int Identifiable (const SpecialPoint & sp1, const SpecialPoint & sp2, const TABLE & specpoint2solid, const TABLE & specpoint2surface) const; /// - virtual int Identifyable (const Point<3> & p1, const Point<3> & sp2) const; + virtual int Identifiable (const Point<3> & p1, const Point<3> & sp2) const; /// is it possible to identify sp1 with some other ? - virtual int IdentifyableCandidate (const SpecialPoint & sp1) const; + virtual int IdentifiableCandidate (const SpecialPoint & sp1) const; /// are points (if connected) by a short edge (direction anyhow) ? virtual int ShortEdge (const SpecialPoint & sp1, const SpecialPoint & sp2) const; @@ -96,7 +96,7 @@ namespace netgen const TABLE & specpoint2solid, const TABLE & specpoint2surface) const override; - virtual int Identifyable (const Point<3> & p1, const Point<3> & sp2) const override; + virtual int Identifiable (const Point<3> & p1, const Point<3> & sp2) const override; virtual int GetIdentifiedPoint (class Mesh & mesh, int pi1) override; virtual void IdentifyPoints (class Mesh & mesh) override; virtual void IdentifyFaces (class Mesh & mesh) override; @@ -150,8 +150,8 @@ namespace netgen virtual int Identifyable (const SpecialPoint & sp1, const SpecialPoint & sp2, const TABLE & specpoint2solid, const TABLE & specpoint2surface) const; - virtual int Identifyable (const Point<3> & p1, const Point<3> & sp2) const; - virtual int IdentifyableCandidate (const SpecialPoint & sp1) const; + virtual int Identifiable (const Point<3> & p1, const Point<3> & sp2) const; + virtual int IdentifiableCandidate (const SpecialPoint & sp1) const; virtual int ShortEdge (const SpecialPoint & sp1, const SpecialPoint & sp2) const; virtual int GetIdentifiedPoint (class Mesh & mesh, int pi1); const Array & GetSlices () const { return slices; } diff --git a/libsrc/csg/singularref.hpp b/libsrc/csg/singularref.hpp index 2412cf8a..6615c93d 100644 --- a/libsrc/csg/singularref.hpp +++ b/libsrc/csg/singularref.hpp @@ -19,7 +19,7 @@ namespace netgen /** Singular Face. - Causes a bounday layer mesh refinement. + Causes a boundary layer mesh refinement. All elements in subdomain domnr will get a boundary layer on faces sharing the solid sol */ diff --git a/libsrc/csg/specpoin.hpp b/libsrc/csg/specpoin.hpp index 40e70a82..a7ec1e45 100644 --- a/libsrc/csg/specpoin.hpp +++ b/libsrc/csg/specpoin.hpp @@ -86,7 +86,7 @@ namespace netgen /// double size; /// - double relydegtest; // maximal dimension of bisection intervall for + double relydegtest; // maximal dimension of bisection interval for /// test of degeneration parameters double cpeps1, epeps1, epeps2, epspointdist2; diff --git a/libsrc/csg/surface.cpp b/libsrc/csg/surface.cpp index e0fcd398..e31e9fce 100644 --- a/libsrc/csg/surface.cpp +++ b/libsrc/csg/surface.cpp @@ -258,7 +258,7 @@ Primitive * Primitive :: CreatePrimitive (const char * classname) stringstream ost; - ost << "Primitve::CreatePrimitive not implemented for " << classname << endl; + ost << "Primitive::CreatePrimitive not implemented for " << classname << endl; throw NgException (ost.str()); } @@ -266,7 +266,7 @@ Primitive * Primitive :: CreatePrimitive (const char * classname) Primitive * Primitive :: Copy () const { stringstream ost; - ost << "Primitve::Copy not implemented for " << typeid(*this).name() << endl; + ost << "Primitive::Copy not implemented for " << typeid(*this).name() << endl; throw NgException (ost.str()); } @@ -274,7 +274,7 @@ Primitive * Primitive :: Copy () const void Primitive :: Transform (Transformation<3> & trans) { stringstream ost; - ost << "Primitve::Transform not implemented for " << typeid(*this).name() << endl; + ost << "Primitive::Transform not implemented for " << typeid(*this).name() << endl; throw NgException (ost.str()); } diff --git a/libsrc/general/ngarray.cpp b/libsrc/general/ngarray.cpp index 5078900e..37a8e118 100644 --- a/libsrc/general/ngarray.cpp +++ b/libsrc/general/ngarray.cpp @@ -66,7 +66,7 @@ namespace netgen if (!actsize) { throw Exception ("NgArray should not be empty"); - // cerr << "NgArray souldn't be empty"; + // cerr << "NgArray shouldn't be empty"; } } #endif diff --git a/libsrc/general/table.hpp b/libsrc/general/table.hpp index e07f4d8a..12d0ff38 100644 --- a/libsrc/general/table.hpp +++ b/libsrc/general/table.hpp @@ -232,7 +232,7 @@ public: inline void PrintMemInfo (ostream & ost) const { int els = AllocatedElements(); - ost << "table: allocaed " << els + ost << "table: allocated " << els << " a " << sizeof(T) << " Byts = " << els * sizeof(T) << " bytes in " << Size() << " bags." diff --git a/libsrc/geom2d/csg2d.cpp b/libsrc/geom2d/csg2d.cpp index 357d6582..fdefb59c 100644 --- a/libsrc/geom2d/csg2d.cpp +++ b/libsrc/geom2d/csg2d.cpp @@ -307,7 +307,7 @@ IntersectionType IntersectSplineSegment1( const Spline & s, const Point<2> & r0, vbeta[0] = 1.0/(2*a_) * (-b_ + sqrt_det); vbeta[1] = 1.0/(2*a_) * (-b_ - sqrt_det); } - else // degenrate quadratic equation + else // degenerate quadratic equation vbeta[0] = vbeta[1] = -c_/b_; int dim = fabs(vr[0]) > fabs(vr[1]) ? 0 : 1; @@ -542,7 +542,7 @@ bool BisectIntersect( Spline p, Spline s, double &t0, double &t1, double &s0, do bool left_hull_intersecting = IntersectTrigs( {left.StartPI(), left.TangentPoint(), left.EndPI()}, {curr.StartPI(), curr.TangentPoint(), curr.EndPI()}); bool right_hull_intersecting = IntersectTrigs( {right.StartPI(), right.TangentPoint(), right.EndPI()}, {curr.StartPI(), curr.TangentPoint(), curr.EndPI()}); - // TODO: Additionaly check if one spline intersects with convex hull of other? + // TODO: Additionally check if one spline intersects with convex hull of other? // // Check if one spline intersects with convex hull of spline // if(left_hull_intersecting) // { @@ -936,7 +936,7 @@ RelativePositionType oracle_spline_p(Point<2> q, Point<2> p1, Point<2> p1t, Poin } // (q,p2) is a spline segment, compare with tangent (qt,p2) instead of Segment (q,p2) -// BUT take care if tangent at p2 is collinear with eiter (p1,p2) or (p2,p3) (then use the segment (q,p2) again) +// BUT take care if tangent at p2 is collinear with either (p1,p2) or (p2,p3) (then use the segment (q,p2) again) RelativePositionType oracle_spline_q(Point<2> q, Point<2> qt, Point<2> p1, Point<2> p2, Point<2> p3) { double s1 = Area( qt, p1, p2); @@ -1402,7 +1402,7 @@ void CreateResult(Solid2d & sp, Solid2d & sr, bool UNION) // // for all crossing vertices // - // NOTE: all crossing vertices that are visited while contructing a + // NOTE: all crossing vertices that are visited while constructing a // component of the result polygon are marked as "not intersection", // so that they cannot serve as start vertex of another component // diff --git a/libsrc/include/nginterface.h b/libsrc/include/nginterface.h index d5d0d336..8d53d7f6 100644 --- a/libsrc/include/nginterface.h +++ b/libsrc/include/nginterface.h @@ -73,7 +73,7 @@ extern "C" { // number of surface triangles DLL_HEADER int Ng_GetNSE (); - // Get Point coordintes, index from 1 .. np + // Get Point coordinates, index from 1 .. np DLL_HEADER void Ng_GetPoint (int pi, double * p); // Get Element Points diff --git a/libsrc/meshing/basegeom.cpp b/libsrc/meshing/basegeom.cpp index 67c5daf3..4df8e44a 100644 --- a/libsrc/meshing/basegeom.cpp +++ b/libsrc/meshing/basegeom.cpp @@ -568,7 +568,7 @@ namespace netgen if(edge->primary == edge) { - // check if start and end vertex are identified (if so, we only insert one segement and do z-refinement later) + // check if start and end vertex are identified (if so, we only insert one segment and do z-refinement later) bool is_identified_edge = false; auto v0 = vertices[edge->GetStartVertex().nr].get(); auto v1 = vertices[edge->GetEndVertex().nr].get(); @@ -909,7 +909,7 @@ namespace netgen Array pmap(mesh.Points().Size()); pmap = PointIndex::INVALID; - // first map points on edges (mapped points alread in mesh, use search tree) + // first map points on edges (mapped points already in mesh, use search tree) Array is_point_in_tree(mesh.Points().Size()); is_point_in_tree = false; PointTree tree( bounding_box ); diff --git a/libsrc/meshing/boundarylayer.cpp b/libsrc/meshing/boundarylayer.cpp index 864c39f3..ce196dcf 100644 --- a/libsrc/meshing/boundarylayer.cpp +++ b/libsrc/meshing/boundarylayer.cpp @@ -535,7 +535,7 @@ namespace netgen if(mesh[points.Last()].Type() == FIXEDPOINT) break; if(!point_found) - throw Exception(string("Could not find connected list of line segements for edge ") + edgenr); + throw Exception(string("Could not find connected list of line segments for edge ") + edgenr); } // tangential part of growth vectors diff --git a/libsrc/meshing/delaunay2d.cpp b/libsrc/meshing/delaunay2d.cpp index 07732695..e88434bf 100644 --- a/libsrc/meshing/delaunay2d.cpp +++ b/libsrc/meshing/delaunay2d.cpp @@ -848,7 +848,7 @@ namespace netgen { have_unknown_trigs = true; - // any edge of unkown trig already marked? + // any edge of unknown trig already marked? for(auto i : IntRange(3)) { INT<2> edge{el[(i+1)%3], el[(i+2)%3]}; diff --git a/libsrc/meshing/hprefinement.cpp b/libsrc/meshing/hprefinement.cpp index e536d8a7..a188ca79 100644 --- a/libsrc/meshing/hprefinement.cpp +++ b/libsrc/meshing/hprefinement.cpp @@ -33,7 +33,7 @@ namespace netgen } HPRefElement :: HPRefElement(Element & el) : - type(HP_NONE), index(el.GetIndex()), levelx(0), levely(0), levelz(0), np(el.GetNV()), domin(-1), domout(-1) //domin,out for segements + type(HP_NONE), index(el.GetIndex()), levelx(0), levely(0), levelz(0), np(el.GetNV()), domin(-1), domout(-1) //domin,out for segments { //Reset(); for (int i=0; i & edges, INDEX_2_HAS } // if 2 adjacent edges of an element are singular, the - // commen point must be a singular point + // common point must be a singular point for (int i = 1; i <= mesh.GetNE(); i++) { const Element & el = mesh.VolumeElement(i); diff --git a/libsrc/meshing/meshclass.cpp b/libsrc/meshing/meshclass.cpp index 855fe169..ff0bd2d4 100644 --- a/libsrc/meshing/meshclass.cpp +++ b/libsrc/meshing/meshclass.cpp @@ -4606,7 +4606,7 @@ namespace netgen if (bface[i] && bface[j]) if (!segedge[pi3map[i][j]][pi4map[i][j]]) { - // 2 boundary faces withoud edge in between + // 2 boundary faces without edge in between el.SetLegal (0); return 0; } diff --git a/libsrc/meshing/meshclass.hpp b/libsrc/meshing/meshclass.hpp index 01197895..6a990e25 100644 --- a/libsrc/meshing/meshclass.hpp +++ b/libsrc/meshing/meshclass.hpp @@ -61,7 +61,7 @@ namespace netgen /// faces of rest-solid NgArray openelements; - /// open segmenets for surface meshing + /// open segments for surface meshing NgArray opensegments; Array tets_in_qualclass; @@ -132,9 +132,9 @@ namespace netgen /// changed after finishing global algorithm (improve, ...) int majortimestamp; - /// mesh access semaphors. + /// mesh access semaphores. NgMutex mutex; - /// mesh access semaphors. + /// mesh access semaphores. NgMutex majormutex; SymbolTable< NgArray* > userdata_int; diff --git a/libsrc/meshing/meshfunc.cpp b/libsrc/meshing/meshfunc.cpp index 44decaaa..553a1422 100644 --- a/libsrc/meshing/meshfunc.cpp +++ b/libsrc/meshing/meshfunc.cpp @@ -17,7 +17,7 @@ namespace netgen { int domain; - // mesh for one domain (contains all adjacent surface elments) + // mesh for one domain (contains all adjacent surface elements) unique_ptr mesh; // maps from local (domain) mesh to global mesh @@ -133,7 +133,7 @@ namespace netgen } } - // add segmetns + // add segments for(auto i : Range(ret)) { auto & imap = ipmap[i]; @@ -230,7 +230,7 @@ namespace netgen pis.insert(map[sel[i]]); } - // degenerate element (mapped element onto itself, might happend for surface elements connecting two identified faces) + // degenerate element (mapped element onto itself, might happen for surface elements connecting two identified faces) if(pis.size() < 2*np) continue; diff --git a/libsrc/meshing/meshtype.cpp b/libsrc/meshing/meshtype.cpp index 8596c753..3ae05e57 100644 --- a/libsrc/meshing/meshtype.cpp +++ b/libsrc/meshing/meshtype.cpp @@ -241,7 +241,7 @@ namespace netgen & edgenr & singedge_left & singedge_right & si & cd2i & domin & domout & tlosurf & surfnr1 & surfnr2 - & bcname_dummy // keep this for backward compatiblity + & bcname_dummy // keep this for backward compatibility & epgeominfo[0].edgenr & epgeominfo[1].edgenr; } @@ -1570,7 +1570,7 @@ namespace netgen } default: { - cout << "GetNodesLocal not impelemented for element " << GetType() << endl; + cout << "GetNodesLocal not implemented for element " << GetType() << endl; np = 0; } } @@ -1676,7 +1676,7 @@ namespace netgen } default: { - cout << "GetNodesLocal not impelemented for element " << GetType() << endl; + cout << "GetNodesLocal not implemented for element " << GetType() << endl; np = 0; pp = NULL; } diff --git a/libsrc/meshing/meshtype.hpp b/libsrc/meshing/meshtype.hpp index 2c343346..fb1bdf43 100644 --- a/libsrc/meshing/meshtype.hpp +++ b/libsrc/meshing/meshtype.hpp @@ -1030,7 +1030,7 @@ namespace netgen /// surface decoding index int si; - /// co dim 2 deconding index + /// co dim 2 decoding index int cd2i; /// domain number inner side int domin; diff --git a/libsrc/meshing/parallelmesh.cpp b/libsrc/meshing/parallelmesh.cpp index 56ba420e..287452a9 100644 --- a/libsrc/meshing/parallelmesh.cpp +++ b/libsrc/meshing/parallelmesh.cpp @@ -39,7 +39,7 @@ namespace ngcore class SurfPointPackage { public: - int num; // point numebr + int num; // point number int trignum; // STL geo info double u, v; // OCC geo info SurfPointPackage () { ; } @@ -502,7 +502,7 @@ namespace netgen /** - Next, we send the identifications themselfs. + Next, we send the identifications themselves. Info about periodic identifications sent to each proc is an array of integers. @@ -872,7 +872,7 @@ namespace netgen segm_buf.Add (dest, seg.singedge_right); segm_buf.Add (dest, seg.singedge_left); }); - // distrubute segment data + // distribute segment data for (int dest = 1; dest < ntasks; dest++) sendrequests.Append (comm.ISend(segm_buf[dest], dest, MPI_TAG_MESH+5)); diff --git a/libsrc/meshing/topology.cpp b/libsrc/meshing/topology.cpp index d2a93db2..a4ed515d 100644 --- a/libsrc/meshing/topology.cpp +++ b/libsrc/meshing/topology.cpp @@ -70,8 +70,8 @@ namespace netgen else if (name == "parentfaces") SetBuildParentFaces(set); else - throw Exception ("noting known about table "+name +"\n" - "knwon are 'edges', 'faces', 'parentedges', 'parentfaces'"); + throw Exception ("nothing known about table "+name +"\n" + "known are 'edges', 'faces', 'parentedges', 'parentfaces'"); } bool MeshTopology :: static_buildedges = true; @@ -87,8 +87,8 @@ namespace netgen else if (name == "vertex2element") static_buildvertex2element = set; else - throw Exception ("noting known about table "+name +"\n" - "knwon are 'edges', 'faces', 'vertex2element'"); + throw Exception ("nothing known about table "+name +"\n" + "known are 'edges', 'faces', 'vertex2element'"); } @@ -753,7 +753,7 @@ namespace netgen int orient_inner = 0; paedge1 = INT<2> (pa0[0], pa0[1]); paedge2 = INT<2> (pa1[0], pa1[1]); - // find common vertex and the thrid pa edge + // find common vertex and the third pa edge if (pa0[0]==pa1[0]){// 00 //orient1 = 0; orient2 = 1; diff --git a/libsrc/occ/Partition_Inter2d.cxx b/libsrc/occ/Partition_Inter2d.cxx index 70095527..90f429cb 100644 --- a/libsrc/occ/Partition_Inter2d.cxx +++ b/libsrc/occ/Partition_Inter2d.cxx @@ -170,7 +170,7 @@ TopoDS_Vertex Partition_Inter2d::AddVonE(const TopoDS_Vertex& theV, //------------------------------------------------------------- // test if the points of intersection already exist. If not, // add as descendants of the edges. - // nb: theses points are only vertices of intersection. + // nb: these points are only vertices of intersection. //------------------------------------------------------------- const TopTools_ListOfShape& VOnE1 = AsDes->Descendant(E1); const TopTools_ListOfShape& VOnE2 = AsDes->Descendant(E2); @@ -247,7 +247,7 @@ TopoDS_Vertex Partition_Inter2d::AddVonE(const TopoDS_Vertex& theV, // if 3 faces intersects each others, 3 new edges on them must pass // through one vertex but real intersection points of each // pair of edges are sometimes more far than a tolerance. - // Try to analitically find vertices that E1 and E2 must pass trough + // Try to analytically find vertices that E1 and E2 must pass through TopoDS_Shape F1 = getOtherShape( theF, AsDes->Ascendant( E1 )); TopoDS_Shape F2 = getOtherShape( theF, AsDes->Ascendant( E2 )); @@ -405,7 +405,7 @@ static void EdgesPartition(const TopoDS_Face& F, // if E1 and E2 are results of intersection of F and two connex faces then // no need to intersect edges, they can contact by vertices only - // (encounted an exception in TopOpeBRep_EdgesIntersector in such a case) + // (encountered an exception in TopOpeBRep_EdgesIntersector in such a case) Standard_Boolean intersect = Standard_True; TopTools_IndexedMapOfShape ME; TopExp::MapShapes(F, TopAbs_EDGE, ME); diff --git a/libsrc/occ/Partition_Inter3d.cxx b/libsrc/occ/Partition_Inter3d.cxx index df02e94c..3fc97b43 100644 --- a/libsrc/occ/Partition_Inter3d.cxx +++ b/libsrc/occ/Partition_Inter3d.cxx @@ -218,7 +218,7 @@ static void PutInBounds (const TopoDS_Face& F, const Standard_Real Um = 0.34*f + 0.66*l; gp_Pnt2d Pm = C2d->Value( Um ); - // sometimes on shpere, pcurve is out of domain by V though S is + // sometimes on sphere, pcurve is out of domain by V though S is // UPeriodic, sometimes it is in domain but nonetheless it has // wrong position. // Check pcurve position by 3D point @@ -499,7 +499,7 @@ void Partition_Inter3d::Inter3D(const TopoDS_Face& F1, const TopoDS_Face& F = (ancRank == 1) ? F2 : F1; - // add se to face but dont add twice + // add se to face but don't add twice TopTools_ListIteratorOfListOfShape itE( myAsDes->Descendant( F )); if (myAsDes->HasDescendant( F )) { for ( ; itE.More(); itE.Next()) diff --git a/libsrc/occ/Partition_Spliter.cxx b/libsrc/occ/Partition_Spliter.cxx index eb52af9d..f409a993 100644 --- a/libsrc/occ/Partition_Spliter.cxx +++ b/libsrc/occ/Partition_Spliter.cxx @@ -1065,7 +1065,7 @@ void Partition_Spliter::MakeShells(const TopoDS_Shape& S, NS = ShellMaker.MakeShells( myAddedFacesMap ); // Add faces added to new shell to myAddedFacesMap: - // avoid rebuilding twice commont part of 2 solids. + // avoid rebuilding twice common part of 2 solids. TopTools_ListIteratorOfListOfShape itS(NS); while ( itS.More()) { TopExp_Explorer expF (itS.Value(), TopAbs_FACE); @@ -1664,7 +1664,7 @@ void Partition_Spliter::MergeEqualEdges (const TopTools_ListOfShape& LSE) //======================================================================= //function : KeepShapesInside -//purpose : remove shapes that are outside of S from resul +//purpose : remove shapes that are outside of S from result //======================================================================= void Partition_Spliter::KeepShapesInside (const TopoDS_Shape& S) @@ -1735,7 +1735,7 @@ void Partition_Spliter::KeepShapesInside (const TopoDS_Shape& S) //======================================================================= //function : RemoveShapesInside -//purpose : remove shapes that are inside S from resul +//purpose : remove shapes that are inside S from result //======================================================================= void Partition_Spliter::RemoveShapesInside (const TopoDS_Shape& S) @@ -1815,7 +1815,7 @@ void Partition_Spliter::RemoveShapesInside (const TopoDS_Shape& S) TopoDS_Shell Shell; myBuilder.MakeShell( Shell ); - // exclude redundant internal face with edges encounterd only once + // exclude redundant internal face with edges encountered only once TopTools_IndexedDataMapOfShapeListOfShape MEF; TopTools_MapIteratorOfMapOfShape itF (RFM); for ( ; itF.More(); itF.Next()) diff --git a/libsrc/occ/occgeom.cpp b/libsrc/occ/occgeom.cpp index 097d93fe..3d36bb7a 100644 --- a/libsrc/occ/occgeom.cpp +++ b/libsrc/occ/occgeom.cpp @@ -856,7 +856,7 @@ namespace netgen cout << "Edges : " << nnre << " (" << nre << ")" << endl; cout << "Vertices : " << nnrv << " (" << nrv << ")" << endl; cout << endl; - cout << "Totol surface area : " << newsurfacecont << " (" << surfacecont << ")" << endl; + cout << "Total surface area : " << newsurfacecont << " (" << surfacecont << ")" << endl; cout << endl; } @@ -1555,7 +1555,7 @@ namespace netgen writer.Write (shape, c_filename); } - throw NgException ("Unkown target format: " + filename); + throw NgException ("Unknown target format: " + filename); } void OCCGeometry :: SaveToMeshFile (ostream & ost) const @@ -1587,7 +1587,7 @@ namespace netgen else { if(format_version>current_format_version) - throw Exception("Loading OCCGeometry from archive: unkown format version " + throw Exception("Loading OCCGeometry from archive: unknown format version " + ToString(format_version) + ", written by netgen version " + ToString(netgen_version)); @@ -1716,7 +1716,7 @@ namespace netgen case TopAbs_VERTEX: count2 = vmap.FindIndex(TopoDS::Vertex(e.Current())); break; default: - cout << "RecursiveTopologyTree: Case " << e.Current().ShapeType() << " not handeled" << endl; + cout << "RecursiveTopologyTree: Case " << e.Current().ShapeType() << " not handled" << endl; } int nrsubshapes = 0; diff --git a/libsrc/occ/occmeshsurf.cpp b/libsrc/occ/occmeshsurf.cpp index 8cadda3e..015d4abe 100644 --- a/libsrc/occ/occmeshsurf.cpp +++ b/libsrc/occ/occmeshsurf.cpp @@ -370,7 +370,7 @@ namespace netgen double u = gi.u; double v = gi.v; #ifdef OLD - // was a problem for pheres: got u-v paramters outside range of definition + // was a problem for pheres: got u-v parameters outside range of definition gp_Pnt x = occface->Value (u,v); diff --git a/libsrc/occ/python_occ_shapes.cpp b/libsrc/occ/python_occ_shapes.cpp index ca38c949..9d7280bb 100644 --- a/libsrc/occ/python_occ_shapes.cpp +++ b/libsrc/occ/python_occ_shapes.cpp @@ -1286,7 +1286,7 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m) double s0, s1; auto curve = BRep_Tool::Curve(e, s0, s1); return curve->Value(s); - }, py::arg("s"), "evaluate curve for paramters 's'") + }, py::arg("s"), "evaluate curve for parameters 's'") .def("Tangent", [](const TopoDS_Edge & e, double s) { gp_Pnt p; gp_Vec v; diff --git a/libsrc/stlgeom/stlgeom.hpp b/libsrc/stlgeom/stlgeom.hpp index cc15a57a..c6c3e676 100644 --- a/libsrc/stlgeom/stlgeom.hpp +++ b/libsrc/stlgeom/stlgeom.hpp @@ -2,7 +2,7 @@ #define FILE_STLGEOM /**************************************************************************/ -/* File: stlgeom.hpp */ +/* File: stlgeom.hpp */ /* Author: Joachim Schoeberl */ /* Author2: Johannes Gerstmayr */ /* Date: 26. Jul. 99 */ diff --git a/libsrc/stlgeom/stltopology.cpp b/libsrc/stlgeom/stltopology.cpp index 9426f879..a1e48545 100644 --- a/libsrc/stlgeom/stltopology.cpp +++ b/libsrc/stlgeom/stltopology.cpp @@ -212,7 +212,7 @@ STLGeometry * STLTopology :: LoadNaomi (istream & ist) if (strcmp (buf, "NODES") == 0) { ist >> novertex; - PrintMessage(5,"nuber of vertices = ", novertex); + PrintMessage(5,"number of vertices = ", novertex); for (i = 0; i < novertex; i++) { ist >> px; diff --git a/libsrc/visualization/visualpkg.cpp b/libsrc/visualization/visualpkg.cpp index c660f77f..c5c35ab7 100644 --- a/libsrc/visualization/visualpkg.cpp +++ b/libsrc/visualization/visualpkg.cpp @@ -111,7 +111,7 @@ namespace netgen vssolution.vecfunction = vssolution.fieldlines_vecfunction; } - // reset visoptions.scalfunction and visoptions.vecfunction if not avialable + // reset visoptions.scalfunction and visoptions.vecfunction if not available if ( vssolution.scalfunction == -1 && strcmp (scalname, "none") != 0) Tcl_SetVar ( interp, "::visoptions.scalfunction", "none", TCL_GLOBAL_ONLY ); if ( vssolution.vecfunction == -1 && strcmp (vecname, "none") != 0) diff --git a/libsrc/visualization/vssolution.cpp b/libsrc/visualization/vssolution.cpp index 0fc6df77..6f73dc02 100644 --- a/libsrc/visualization/vssolution.cpp +++ b/libsrc/visualization/vssolution.cpp @@ -214,7 +214,7 @@ namespace netgen case SOL_SURFACE_NONCONTINUOUS: ost << " -type=surfacenoncontinuous"; break; default: - cerr << "save solution data, case not handeld" << endl; + cerr << "save solution data, case not handled" << endl; } ost << endl; @@ -2019,7 +2019,7 @@ namespace netgen double(iz)/n); break; default: - cerr << "case not implementd 878234" << endl; + cerr << "case not implemented 878234" << endl; ploc = 0.0; } if (compress[ii] != -1) @@ -2889,7 +2889,7 @@ namespace netgen break; } default: - cerr << "case not implementd 23523" << endl; + cerr << "case not implemented 23523" << endl; } for (int i = 0; i < np; i++) @@ -3408,7 +3408,7 @@ namespace netgen return ok; } default: - cerr << "case not implementd 6565" << endl; + cerr << "case not implemented 6565" << endl; } return 0; } @@ -3575,7 +3575,7 @@ namespace netgen break; } default: - cerr << "case not implementd 2342" << endl; + cerr << "case not implemented 2342" << endl; } break; } @@ -3844,7 +3844,7 @@ namespace netgen break; } default: - cerr << "case not implented 3234" << endl; + cerr << "case not implemented 3234" << endl; } break; } diff --git a/ng/Togl-1.7/README.stubs b/ng/Togl-1.7/README.stubs index 2950a981..4c1b8186 100644 --- a/ng/Togl-1.7/README.stubs +++ b/ng/Togl-1.7/README.stubs @@ -4,7 +4,7 @@ interface, witch means that the same binary works with any stubs-aware wish (i.e. version >= 8.1) It has been tested on Windows NT/2000 and Linux for several Tcl/Tk versions up -to 8.4a3. I haven't been able to test the Mac port, it propably needs mending +to 8.4a3. I haven't been able to test the Mac port, it probably needs mending but I can't see why it shouldn't work in principle. Implementation wise, what differs from Togl 1.5 is that Togl_MakeWindowExist() @@ -16,6 +16,6 @@ same binary runs on all versions of Wish from 8.1 and up. For this to work you need to compile against the headers from Tcl/Tk 8.4a3 or later, or the binary will only work for Tcl/Tk 8.1-8.4a2. The tk8.4a3 public headers (tk8.4a3.h + tkDecls.h) are included for -conveniance, and they are used if the flag -DUSE_LOCAL_TK_H is specified. +convenience, and they are used if the flag -DUSE_LOCAL_TK_H is specified. Jonas Beskow, December 2001 \ No newline at end of file diff --git a/ng/Togl-1.7/Togl.html b/ng/Togl-1.7/Togl.html index fa451e24..5df48136 100644 --- a/ng/Togl-1.7/Togl.html +++ b/ng/Togl-1.7/Togl.html @@ -844,7 +844,7 @@ make -C Togl install
pathName swapbuffers
Causes front/back buffers to be swapped if in double buffer mode. - And flushs the OpenGL command buffer if in single buffer mode. + And flushes the OpenGL command buffer if in single buffer mode. (So this is appropriate to call after every frame is drawn.) @@ -900,7 +900,7 @@ make -C Togl install type make demos. The demos are compiled into shared libraries, that can are loaded into the Tcl interpreter as Tcl/Tk-extensions. - Demos are started by running the corrsponding Tcl script. + Demos are started by running the corresponding Tcl script. To run a demo just type ./double.tcl or ./texture.tcl etc. diff --git a/ng/Togl2.1/README.bin b/ng/Togl2.1/README.bin index 49e820b2..a555b7c9 100644 --- a/ng/Togl2.1/README.bin +++ b/ng/Togl2.1/README.bin @@ -67,7 +67,7 @@ File hierarchy: *.html Start with index.html The contents of the include and lib directories can be placed verbatim -in the Tcl installataion hierarchy. +in the Tcl installation hierarchy. Documentation is in the doc directory. Start with doc/index.html in your web browser. diff --git a/ng/Togl2.1/README.stubs b/ng/Togl2.1/README.stubs index 2950a981..4c1b8186 100644 --- a/ng/Togl2.1/README.stubs +++ b/ng/Togl2.1/README.stubs @@ -4,7 +4,7 @@ interface, witch means that the same binary works with any stubs-aware wish (i.e. version >= 8.1) It has been tested on Windows NT/2000 and Linux for several Tcl/Tk versions up -to 8.4a3. I haven't been able to test the Mac port, it propably needs mending +to 8.4a3. I haven't been able to test the Mac port, it probably needs mending but I can't see why it shouldn't work in principle. Implementation wise, what differs from Togl 1.5 is that Togl_MakeWindowExist() @@ -16,6 +16,6 @@ same binary runs on all versions of Wish from 8.1 and up. For this to work you need to compile against the headers from Tcl/Tk 8.4a3 or later, or the binary will only work for Tcl/Tk 8.1-8.4a2. The tk8.4a3 public headers (tk8.4a3.h + tkDecls.h) are included for -conveniance, and they are used if the flag -DUSE_LOCAL_TK_H is specified. +convenience, and they are used if the flag -DUSE_LOCAL_TK_H is specified. Jonas Beskow, December 2001 \ No newline at end of file diff --git a/ng/Togl2.1/doc/stereo.html b/ng/Togl2.1/doc/stereo.html index 97d02187..09410ef2 100644 --- a/ng/Togl2.1/doc/stereo.html +++ b/ng/Togl2.1/doc/stereo.html @@ -55,7 +55,7 @@ should be replaced with the Togl Tcl or C versions - for seemless stereo rendering. + for seamless stereo rendering.

The various stereo modes are:

diff --git a/ng/Togl2.1/doc/tclapi.html b/ng/Togl2.1/doc/tclapi.html index 6d6c9a97..3d510749 100644 --- a/ng/Togl2.1/doc/tclapi.html +++ b/ng/Togl2.1/doc/tclapi.html @@ -136,7 +136,7 @@ if {[lsearch [pathName extensions] GL_EXT_bgra] != -1]} {
pathName swapbuffers
Causes front/back buffers to be swapped if in double buffer mode. - And flushs the OpenGL command buffer if in single buffer mode. + And flushes the OpenGL command buffer if in single buffer mode. (So this is appropriate to call after every frame is drawn.)
diff --git a/ng/Togl2.1/doc/using.html b/ng/Togl2.1/doc/using.html index e72eaf38..c16e871c 100644 --- a/ng/Togl2.1/doc/using.html +++ b/ng/Togl2.1/doc/using.html @@ -95,7 +95,7 @@ in the Togl source directory. The C packages are compiled into shared libraries that are loaded into the Tcl interpreter as Tcl/Tk-extensions. - The examples are started by running the corrsponding Tcl script: + The examples are started by running the corresponding Tcl script: just type ./double.tcl (or ./texture.tcl etc.) or run under one of the Tcl interpreters, i.e., diff --git a/ng/Togl2.1/togl.c b/ng/Togl2.1/togl.c index 91c4eaab..290f5cef 100644 --- a/ng/Togl2.1/togl.c +++ b/ng/Togl2.1/togl.c @@ -5112,7 +5112,7 @@ static int ObjectIsEmpty(Tcl_Obj *objPtr); * * GetStereo - * - * Converts an internal int into a a Tcl string obj. + * Converts an internal int into a Tcl string obj. * * Results: * Tcl_Obj containing the string representation of the stereo value. @@ -5282,7 +5282,7 @@ RestoreStereo(ClientData clientData, Tk_Window tkwin, char *internalPtr, * * GetWideInt - * - * Converts an internal wide integer into a a Tcl WideInt obj. + * Converts an internal wide integer into a Tcl WideInt obj. * * Results: * Tcl_Obj containing the wide int value. diff --git a/ng/csgeom.tcl b/ng/csgeom.tcl index d3b1c7d3..bc596d7d 100644 --- a/ng/csgeom.tcl +++ b/ng/csgeom.tcl @@ -222,7 +222,7 @@ proc editprimitivedialog2 { name } { # # -# Select primitve to edit +# Select primitive to edit # # diff --git a/ng/dialog.tcl b/ng/dialog.tcl index 1d7a65c2..3d118574 100644 --- a/ng/dialog.tcl +++ b/ng/dialog.tcl @@ -676,7 +676,7 @@ proc meshingoptionsdialog { } { ttk::checkbutton $f.cb1.slowchecks -text "Slow checks" \ -variable debug.slowchecks -command { Ng_SetDebugParameters } - ttk::checkbutton $f.cb1.debugoutput -text "Debugging outout" \ + ttk::checkbutton $f.cb1.debugoutput -text "Debugging output" \ -variable debug.debugoutput -command { Ng_SetDebugParameters } ttk::checkbutton $f.cb1.haltexline -text "Halt on existing line" \ -variable debug.haltexistingline -command { Ng_SetDebugParameters } diff --git a/ng/menustat.tcl b/ng/menustat.tcl index 329d59bd..5be804c2 100644 --- a/ng/menustat.tcl +++ b/ng/menustat.tcl @@ -190,7 +190,7 @@ proc AddRecentMeshFile { filename } { } loadmeshinifile; -# astrid ende +# astrid end .ngmenu.file add command -label "Save Mesh..." -accelerator "" \ diff --git a/ng/onetcl.cpp b/ng/onetcl.cpp index eb19c92e..6d788b16 100644 --- a/ng/onetcl.cpp +++ b/ng/onetcl.cpp @@ -1852,7 +1852,7 @@ DLL_HEADER const char * ngscript[] = {"" ,"pack $f.cb1 -fill x -pady 15\n" ,"ttk::checkbutton $f.cb1.slowchecks -text \"Slow checks\" \\\n" ,"-variable debug.slowchecks -command { Ng_SetDebugParameters }\n" -,"ttk::checkbutton $f.cb1.debugoutput -text \"Debugging outout\" \\\n" +,"ttk::checkbutton $f.cb1.debugoutput -text \"Debugging output\" \\\n" ,"-variable debug.debugoutput -command { Ng_SetDebugParameters }\n" ,"ttk::checkbutton $f.cb1.haltexline -text \"Halt on existing line\" \\\n" ,"-variable debug.haltexistingline -command { Ng_SetDebugParameters }\n" diff --git a/nglib/ng_stl.cpp b/nglib/ng_stl.cpp index af8a2ed8..ef13549c 100644 --- a/nglib/ng_stl.cpp +++ b/nglib/ng_stl.cpp @@ -113,10 +113,10 @@ int main (int argc, char ** argv) Ng_SaveMesh(mesh,"test.vol"); - // refinement without geomety adaption: + // refinement without geometry adaption: // Ng_Uniform_Refinement (mesh); - // refinement with geomety adaption: + // refinement with geometry adaption: Ng_STL_Uniform_Refinement (stl_geom, mesh); cout << "elements after refinement: " << Ng_GetNE(mesh) << endl; diff --git a/py_tutorials/merge.py b/py_tutorials/merge.py index abacd38e..1633e808 100644 --- a/py_tutorials/merge.py +++ b/py_tutorials/merge.py @@ -16,9 +16,9 @@ m2 = geo2.GenerateMesh (maxh=0.05) m2.Refine() m2.Refine() -print ("***************************") -print ("** merging suface meshes **") -print ("***************************") +print ("****************************") +print ("** merging surface meshes **") +print ("****************************") # create an empty mesh mesh = Mesh() diff --git a/tutorials/cubeandspheres.geo b/tutorials/cubeandspheres.geo index d5ad4f65..baac4bc9 100644 --- a/tutorials/cubeandspheres.geo +++ b/tutorials/cubeandspheres.geo @@ -11,7 +11,7 @@ solid cube = plane (0, 0, 0; 0, 0, -1) and plane (1, 1, 1; 0, 1, 0) and plane (1, 1, 1; 1, 0, 0); -# two shperes +# two spheres solid sph1 = sphere (0.5, 0.5, 0.5; 0.58); solid sph2 = sphere (0.5, 0.5, 0.5; 0.75);