Misc. typos and whitespace
Found via `codespell -q 3 --skip="*.po,*.ts,./.git,./src/3rdParty,./src/CXX,./src/zipios++,./src/Mod/Assembly/App/opendcm,./ChangeLog.txt" -I ../fc-word-whitelist.txt` and `grep`. Excess whitespace auto-removed by Atom editor.
This commit is contained in:
@@ -44,7 +44,7 @@ import numpy as np
|
||||
|
||||
|
||||
class _ViewProviderFemResultMechanical:
|
||||
"A View Provider for the FemResultObject Python dervied FemResult class"
|
||||
"A View Provider for the FemResultObject Python derived FemResult class"
|
||||
|
||||
def __init__(self, vobj):
|
||||
vobj.Proxy = self
|
||||
|
||||
@@ -1152,7 +1152,7 @@ def get_ref_facenodes_areas(femnodes_mesh, face_table):
|
||||
|
||||
def get_ref_shape_node_sum_geom_table(node_geom_table):
|
||||
# shape could be Edge or Face, geom could be length or area
|
||||
# sum of legth or area for each node of the ref_shape
|
||||
# sum of length or area for each node of the ref_shape
|
||||
node_sum_geom_table = {}
|
||||
for n, A in node_geom_table:
|
||||
# print(n, ' --> ', A)
|
||||
|
||||
@@ -65,7 +65,7 @@ class _FemResultMechanical():
|
||||
# standard Feature methods
|
||||
def execute(self, obj):
|
||||
""""this method is executed on object creation and whenever the document is recomputed"
|
||||
update Part or Mesh should NOT lead to recompution of the analysis automatically, time consuming
|
||||
update Part or Mesh should NOT lead to recomputation of the analysis automatically, time consuming
|
||||
"""
|
||||
return
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
# include <TopoDS_Shape.hxx>
|
||||
@@ -157,7 +157,7 @@ bool Part2DObject::seekTrimPoints(const std::vector<Geometry *> &geomlist,
|
||||
std::vector<gp_Pnt2d> points;
|
||||
|
||||
// #2463 Check for endpoints of secondarycurve on primary curve
|
||||
// If the OCCT Intersector should detect endpoint tangency when triming, then
|
||||
// If the OCCT Intersector should detect endpoint tangency when trimming, then
|
||||
// this is just a work-around until that bug is fixed.
|
||||
// https://www.freecadweb.org/tracker/view.php?id=2463
|
||||
// https://tracker.dev.opencascade.org/view.php?id=30217
|
||||
@@ -287,4 +287,3 @@ namespace App {
|
||||
// explicit template instantiation
|
||||
template class PartExport FeaturePythonT<Part::Part2DObject>;
|
||||
}
|
||||
|
||||
|
||||
@@ -100,8 +100,8 @@ char* _edgeTypeToText(int e);
|
||||
//bool _checkActive(Gui::Command* cmd, Base::Type classType, bool needSubs);
|
||||
|
||||
|
||||
//NOTE: this is not shown in toolbar and doesn't always work right in the menu.
|
||||
// should be removed.
|
||||
//NOTE: this is not shown in toolbar and doesn't always work right in the menu.
|
||||
// should be removed.
|
||||
//===========================================================================
|
||||
// TechDraw_NewDimension
|
||||
//===========================================================================
|
||||
@@ -284,7 +284,7 @@ void CmdTechDrawNewRadiusDimension::activated(int iMsg)
|
||||
objs.push_back(objFeat);
|
||||
subs.push_back(SubNames[0]);
|
||||
} else if (edgeType == isBSplineCircle) {
|
||||
QMessageBox::StandardButton result =
|
||||
QMessageBox::StandardButton result =
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Selection Warning"),
|
||||
QObject::tr("Selected edge is a BSpline. Radius will be approximate."),
|
||||
QMessageBox::Ok | QMessageBox::Cancel,
|
||||
@@ -384,7 +384,7 @@ void CmdTechDrawNewDiameterDimension::activated(int iMsg)
|
||||
objs.push_back(objFeat);
|
||||
subs.push_back(SubNames[0]);
|
||||
} else if (edgeType == isBSplineCircle) {
|
||||
QMessageBox::StandardButton result =
|
||||
QMessageBox::StandardButton result =
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Selection Warning"),
|
||||
QObject::tr("Selected edge is a BSpline. Diameter will be approximate."),
|
||||
QMessageBox::Ok | QMessageBox::Cancel,
|
||||
@@ -402,7 +402,7 @@ void CmdTechDrawNewDiameterDimension::activated(int iMsg)
|
||||
QObject::tr(edgeMsg.str().c_str()));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
openCommand("Create Dimension");
|
||||
doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawViewDimension','%s')",FeatName.c_str());
|
||||
doCommand(Doc,"App.activeDocument().%s.Type = '%s'",FeatName.c_str()
|
||||
@@ -507,7 +507,7 @@ void CmdTechDrawNewLengthDimension::activated(int iMsg)
|
||||
subs.push_back(SubNames[1]);
|
||||
} else {
|
||||
std::stringstream edgeMsg;
|
||||
edgeMsg << "Need 2 Vetexes, 1 straight Edge, 1 Vertex/1 straight edge or 2 straight Edges for length Dimension (edge type: " << _edgeTypeToText(edgeType) << ")";
|
||||
edgeMsg << "Need 2 Vertexes, 1 straight Edge, 1 Vertex/1 straight edge or 2 straight Edges for length Dimension (edge type: " << _edgeTypeToText(edgeType) << ")";
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Incorrect Selection"),
|
||||
QObject::tr(edgeMsg.str().c_str()));
|
||||
return;
|
||||
@@ -530,7 +530,7 @@ void CmdTechDrawNewLengthDimension::activated(int iMsg)
|
||||
TechDraw::pointPair pp = dim->getLinearPoints();
|
||||
Base::Vector3d mid = (pp.first + pp.second)/2.0;
|
||||
dim->X.setValue(mid.x);
|
||||
dim->Y.setValue(-mid.y);
|
||||
dim->Y.setValue(-mid.y);
|
||||
|
||||
//Horrible hack to force Tree update (claimChildren)
|
||||
double x = objFeat->X.getValue();
|
||||
@@ -619,7 +619,7 @@ void CmdTechDrawNewDistanceXDimension::activated(int iMsg)
|
||||
subs.push_back(SubNames[1]);
|
||||
} else {
|
||||
std::stringstream edgeMsg;
|
||||
edgeMsg << "Need 2 Vetexes, 1 straight Edge, 1 Vertex/1 straight edge or 2 straight Edges for Horizontal Dimension (edge type: " << _edgeTypeToText(edgeType) << ")";
|
||||
edgeMsg << "Need 2 Vertexes, 1 straight Edge, 1 Vertex/1 straight edge or 2 straight Edges for Horizontal Dimension (edge type: " << _edgeTypeToText(edgeType) << ")";
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Incorrect Selection"),
|
||||
QObject::tr(edgeMsg.str().c_str()));
|
||||
return;
|
||||
@@ -643,7 +643,7 @@ void CmdTechDrawNewDistanceXDimension::activated(int iMsg)
|
||||
TechDraw::pointPair pp = dim->getLinearPoints();
|
||||
Base::Vector3d mid = (pp.first + pp.second)/2.0;
|
||||
dim->X.setValue(mid.x);
|
||||
dim->Y.setValue(-mid.y);
|
||||
dim->Y.setValue(-mid.y);
|
||||
|
||||
//Horrible hack to force Tree update
|
||||
double x = objFeat->X.getValue();
|
||||
@@ -732,7 +732,7 @@ void CmdTechDrawNewDistanceYDimension::activated(int iMsg)
|
||||
subs.push_back(SubNames[1]);
|
||||
} else {
|
||||
std::stringstream edgeMsg;
|
||||
edgeMsg << "Need 2 Vetexes, 1 straight Edge, 1 Vertex/1 straight edge or 2 straight Edges for Horizontal Dimension (edge type: " << _edgeTypeToText(edgeType) << ")";
|
||||
edgeMsg << "Need 2 Vertexes, 1 straight Edge, 1 Vertex/1 straight edge or 2 straight Edges for Horizontal Dimension (edge type: " << _edgeTypeToText(edgeType) << ")";
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Incorrect Selection"),
|
||||
QObject::tr(edgeMsg.str().c_str()));
|
||||
return;
|
||||
@@ -755,7 +755,7 @@ void CmdTechDrawNewDistanceYDimension::activated(int iMsg)
|
||||
TechDraw::pointPair pp = dim->getLinearPoints();
|
||||
Base::Vector3d mid = (pp.first + pp.second)/2.0;
|
||||
dim->X.setValue(mid.x);
|
||||
dim->Y.setValue(-mid.y);
|
||||
dim->Y.setValue(-mid.y);
|
||||
|
||||
//Horrible hack to force Tree update
|
||||
double x = objFeat->X.getValue();
|
||||
@@ -905,7 +905,7 @@ void CmdTechDrawNewAngle3PtDimension::activated(int iMsg)
|
||||
std::vector<App::DocumentObject *> objs;
|
||||
std::vector<std::string> subs;
|
||||
|
||||
if (_isValidVertexes(this, 3)) {
|
||||
if (_isValidVertexes(this, 3)) {
|
||||
objs.push_back(objFeat);
|
||||
objs.push_back(objFeat);
|
||||
objs.push_back(objFeat);
|
||||
@@ -1142,7 +1142,7 @@ int _isValidSingleEdge(Gui::Command* cmd) {
|
||||
edgeType = isEllipse;
|
||||
} else if (geom->geomType == TechDrawGeometry::BSPLINE) {
|
||||
TechDrawGeometry::BSpline* spline = static_cast<TechDrawGeometry::BSpline*>(geom);
|
||||
if (spline->isCircle()) {
|
||||
if (spline->isCircle()) {
|
||||
edgeType = isBSplineCircle;
|
||||
} else {
|
||||
edgeType = isBSpline;
|
||||
|
||||
Reference in New Issue
Block a user