Fix various typos and grammatical refinements

This commit is contained in:
luz paz
2021-12-08 15:47:13 -05:00
committed by Chris Hennes
parent 782f9c93f4
commit b6f9f39ffc
6 changed files with 12 additions and 12 deletions

View File

@@ -239,7 +239,7 @@ const char* BRepBuilderAPI_FaceErrorText(BRepBuilderAPI_FaceError et)
return "Parameters out of range";
#if OCC_VERSION_HEX < 0x060500
case BRepBuilderAPI_SurfaceNotC2:
return "Surface not C2-continous";
return "Surface not C2-continuous";
#endif
default:
return "Unknown creation error";

View File

@@ -510,7 +510,7 @@ double Helix::safePitch()
double X = Xmax - Xmin, Y = Ymax - Ymin, Z = Zmax - Zmin;
gp_Vec boundingBoxVec(X, Y, Z);
// Below is an approximation becaue since we take the bounding box it is
// Below is an approximation because since we take the bounding box it is
// impossible to calculate it precisely. For example a circle has as bounding
// box a square and thus results in a larger pitch than really necessary
@@ -518,7 +518,7 @@ double Helix::safePitch()
double pitch0 = boundingBoxVec * direction;
if (mode == HelixMode::height_turns_growth) {
// if the distange perpendicular to axisVec
// if the distance perpendicular to axisVec
// between two turns is larger than the bounding box size in this direction
// the minimal necessary pitch is zero
if (abs(growthValue) > abs(boundingBoxVec * directionStart))
@@ -527,7 +527,7 @@ double Helix::safePitch()
return pitch0;
}
else {
// if the angle is so large that the distange perpendicular to axisVec
// if the angle is so large that the distance perpendicular to axisVec
// between two turns is larger than the bounding box size in this direction
// the pitch can be smaller than pitch0
if (tan(abs(angle)) * pitch0 > abs(boundingBoxVec * directionStart))

View File

@@ -77,7 +77,7 @@ bool ReferenceSelection::allow(App::Document* pDoc, App::DocumentObject* pObj, c
return allowDatum(body, pObj);
}
// The flag was used to be set. So, this block will never be treated and doesn't make really sense anyway
// The flag was used to be set. So, this block will never be treated and really doesn't make sense anyway
#if 0
if (!type.testFlag(AllowSelection::OTHERBODY)) {
if (support == NULL)

View File

@@ -135,13 +135,13 @@ def generate(normalVector, aMin=-360, aMax=360, cMin=-360, cMax=360, compound=Fa
to align the vector the positive Y axis. Then around the X axis
(A rotation).
The min and max arguments dictate the range of motion allowed rotation in the respective
axis.
Default assumes continous rotation.
The min and max arguments dictate the range of motion allowed rotation in
the respective axis.
Default assumes continuous rotation.
returns a list of path commands for the shortest valid solution
Returns a list of path commands for the shortest valid solution
if compound is False, axis moves will be broken out to individual commands
If compound is False, axis moves will be broken out to individual commands
The normalVector input from a typical face (f) can be obtained like this:

View File

@@ -58,7 +58,7 @@ namespace Sketcher {
* Internal and external geometries are present in a single geometry vector one after the other.
*
* N.B.: Note that the index of the geomlist (all layers) and the GeoId can be converted
* from each other at needed using the member fuctions (and sometimes the statics).
* from each other at needed using the member functions (and sometimes the statics).
*/
template <typename T>
class GeoListModel {

View File

@@ -102,7 +102,7 @@ void GeometryFacade::initExtension()
void GeometryFacade::initExtension() const
{
// const Geometry without SketchGeometryExtension cannot initiliase a GeometryFacade
// const Geometry without SketchGeometryExtension cannot initialise a GeometryFacade
assert(Geo->hasExtension(SketchGeometryExtension::getClassTypeId()));
auto ext = std::static_pointer_cast<const SketchGeometryExtension>(Geo->getExtension(SketchGeometryExtension::getClassTypeId()).lock());