Fix various typos throughout the codebase
This commit is contained in:
@@ -510,7 +510,7 @@ std::vector<App::DocumentObject*> AssemblyObject::getJoints(bool updateJCS, bool
|
||||
auto* part1 = getObjFromProp(joint, "Part1");
|
||||
auto* part2 = getObjFromProp(joint, "Part2");
|
||||
if (!part1 || !part2 || part1->getFullName() == part2->getFullName()) {
|
||||
// Remove incomplete joints. Left-over when the user delets a part.
|
||||
// Remove incomplete joints. Left-over when the user deletes a part.
|
||||
// Remove incoherent joints (self-pointing joints)
|
||||
if (delBadJoints) {
|
||||
getDocument()->removeObject(joint->getNameInDocument());
|
||||
|
||||
@@ -281,7 +281,7 @@ std::string Assembly::BomObject::getText(size_t row, size_t col)
|
||||
if (cell) {
|
||||
cell->getStringContent(cellName);
|
||||
|
||||
// getStringContent is addind a ' before the string for whatever reason.
|
||||
// getStringContent is adding a ' before the string for whatever reason.
|
||||
if (!cellName.empty() && cellName.front() == '\'') {
|
||||
cellName.erase(0, 1); // Remove the first character if it's a '
|
||||
}
|
||||
|
||||
@@ -632,7 +632,7 @@ class TaskAssemblyCreateView(QtCore.QObject):
|
||||
self.alignMode = "Custom"
|
||||
self.selectingFeature = True
|
||||
# We use greedy selection to prevent that clicking again on the solid
|
||||
# clears selection before trying to select the whole assemly
|
||||
# clears selection before trying to select the whole assembly
|
||||
Gui.Selection.setSelectionStyle(Gui.Selection.SelectionStyle.GreedySelection)
|
||||
self.enableDragger(False)
|
||||
self.form.LabelAlignDragger.setVisible(True)
|
||||
|
||||
@@ -908,7 +908,7 @@ void ViewProviderAssembly::onSelectionChanged(const Gui::SelectionChanges& msg)
|
||||
|
||||
bool ViewProviderAssembly::onDelete(const std::vector<std::string>& subNames)
|
||||
{
|
||||
// Delete the assembly goups when assembly is deleted
|
||||
// Delete the assembly groups when assembly is deleted
|
||||
for (auto obj : getObject()->getOutList()) {
|
||||
if (obj->getTypeId() == Assembly::JointGroup::getClassTypeId()
|
||||
|| obj->getTypeId() == Assembly::ViewGroup::getClassTypeId()
|
||||
|
||||
@@ -39,7 +39,7 @@ from pivy import coin
|
||||
def generate_geometry(obj, cached=False):
|
||||
"""Sets the geometry of the given object from a corresponding IFC element.
|
||||
This is the main function called by the execute method of FreeCAD document objects
|
||||
It is only meant to be called form there, as it is always the responsability of the
|
||||
It is only meant to be called form there, as it is always the responsibility of the
|
||||
NativeIFC document object to know when it needs to regenerate its geometry.
|
||||
|
||||
The generate_geometry will call either generate_shape or generate_coin, depending
|
||||
|
||||
@@ -88,7 +88,7 @@ def load_materials(obj):
|
||||
|
||||
|
||||
def get_material(obj):
|
||||
"""Returns a material attched to this object"""
|
||||
"""Returns a material attached to this object"""
|
||||
|
||||
element = ifc_tools.get_ifc_element(obj)
|
||||
if not element:
|
||||
|
||||
@@ -139,7 +139,7 @@ def convert_document(document, filename=None, shapemode=0, strategy=0, silent=Fa
|
||||
|
||||
|
||||
def setup_project(proj, filename, shapemode, silent):
|
||||
"""Setups a project (common operations between signle doc/not single doc modes)
|
||||
"""Sets up a project (common operations between single doc/not single doc modes)
|
||||
Returns the ifcfile object, the project ifc entity, and full (True/False)"""
|
||||
|
||||
full = False
|
||||
@@ -1189,7 +1189,7 @@ def get_elem_attribs(ifcentity):
|
||||
# This function can become pure IFC
|
||||
|
||||
# usually info_ifcentity = ifcentity.get_info() would de the trick
|
||||
# the above could raise an unhandled excption on corrupted ifc files
|
||||
# the above could raise an unhandled exception on corrupted ifc files
|
||||
# in IfcOpenShell
|
||||
# see https://github.com/IfcOpenShell/IfcOpenShell/issues/2811
|
||||
# thus workaround
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
# ***************************************************************************
|
||||
|
||||
"""This script converts a xml file containing pset definitions to a csv file.
|
||||
Python3 only!! (py2 csv doesn't suppot utf8"""
|
||||
Python3 only!! (py2 csv doesn't support utf8"""
|
||||
|
||||
import xml.sax, os
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ class CAMSimulation:
|
||||
while edge is not None:
|
||||
sideEdgeList.remove(edge)
|
||||
if type(edge.Curve) is Part.Circle:
|
||||
# if edge is curved, aproximate it with lines based on resolution
|
||||
# if edge is curved, approximate it with lines based on resolution
|
||||
nsegments = int(edge.Length / resolution) + 1
|
||||
step = (p2 - p1) / nsegments
|
||||
location = p1 + step
|
||||
|
||||
@@ -71,7 +71,7 @@ def convertTo2d(pathArray):
|
||||
|
||||
|
||||
sceneGraph = None
|
||||
scenePathNodes = [] # for scene cleanup aftewards
|
||||
scenePathNodes = [] # for scene cleanup afterwards
|
||||
topZ = 10
|
||||
|
||||
|
||||
|
||||
@@ -493,7 +493,7 @@ class ObjectVcarve(PathEngraveBase.ObjectOp):
|
||||
pathlist = []
|
||||
pathlist.append(Path.Command("(starting)"))
|
||||
|
||||
# iterate over each face separatedly
|
||||
# iterate over each face separately
|
||||
for face, wires in self.buildMedialWires(obj, faces).items():
|
||||
|
||||
geom = _Geometry.FromObj(obj, self.model[0])
|
||||
|
||||
@@ -584,7 +584,7 @@ namespace MillSim {
|
||||
{
|
||||
if (mCodeParser.Parse(fileName))
|
||||
{
|
||||
std::cout << "GCode file loaded successfuly" << std::endl;
|
||||
std::cout << "GCode file loaded successfully" << std::endl;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -424,7 +424,7 @@ M2
|
||||
)
|
||||
|
||||
def test200(self):
|
||||
"""Test A, B, & C axis output for values below -360 degress
|
||||
"""Test A, B, & C axis output for values below -360 degrees
|
||||
"""
|
||||
self.compare_sixth_line(
|
||||
"G1 X10 Y20 Z30 A-440 B-450 C-460",
|
||||
|
||||
@@ -323,7 +323,7 @@ def offsetWire(wire, dvec, bind=False, occ=False,
|
||||
if not isinstance(basewireOffset, list):
|
||||
basewireOffset = [basewireOffset]
|
||||
else:
|
||||
basewireOffset = basewireOffset # for backward compatability
|
||||
basewireOffset = basewireOffset # for backward compatibility
|
||||
|
||||
for i in range(len(edges)):
|
||||
# make a copy so it do not reverse the self.baseWires edges
|
||||
|
||||
@@ -64,7 +64,7 @@ std::vector<App::DocumentObject*> MeasureBase::getSubject() const {
|
||||
|
||||
Py::Object proxy = getProxyObject();
|
||||
|
||||
// Pass the feture object to the proxy
|
||||
// Pass the feature object to the proxy
|
||||
Py::Tuple args(1);
|
||||
args.setItem(0, Py::Object(const_cast<MeasureBase*>(this)->getPyObject()));
|
||||
|
||||
@@ -99,7 +99,7 @@ void MeasureBase::parseSelection(const App::MeasureSelection& selection) {
|
||||
|
||||
Py::Tuple args(2);
|
||||
|
||||
// Pass the feture object to the proxy
|
||||
// Pass the feature object to the proxy
|
||||
args.setItem(0, Py::Object(const_cast<MeasureBase*>(this)->getPyObject()));
|
||||
args.setItem(1, selectionPy);
|
||||
|
||||
@@ -149,7 +149,7 @@ QString MeasureBase::getResultString() {
|
||||
|
||||
if (!proxy.isNone()) {
|
||||
|
||||
// Pass the feture object to the proxy
|
||||
// Pass the feature object to the proxy
|
||||
Py::Tuple args(1);
|
||||
args.setItem(0, Py::Object(const_cast<MeasureBase*>(this)->getPyObject()));
|
||||
|
||||
|
||||
@@ -26,12 +26,12 @@ class MeasureBasePython(ABC):
|
||||
|
||||
@abstractclassmethod
|
||||
def isValidSelection(cls, selection):
|
||||
"""Returns True if the given selection is valid for this measurment"""
|
||||
"""Returns True if the given selection is valid for this measurement"""
|
||||
pass
|
||||
|
||||
@abstractclassmethod
|
||||
def isPrioritySelection(cls, selection):
|
||||
"""Returns True if creation of this measurment should be priorized over other measurements for the given selection"""
|
||||
"""Returns True if creation of this measurement should be priorized over other measurements for the given selection"""
|
||||
pass
|
||||
|
||||
@abstractclassmethod
|
||||
|
||||
@@ -43,7 +43,7 @@ class ColorTransparencyTest(unittest.TestCase):
|
||||
This test isn't currently valid as it draws from the hard coded default material.
|
||||
|
||||
The preference editor doesn't allow for setting transparencies. The default value
|
||||
of 0 corresponds to a fully transparent color, which is not desireable. It changes
|
||||
of 0 corresponds to a fully transparent color, which is not desirable. It changes
|
||||
the transparency when loading to 1.0
|
||||
"""
|
||||
|
||||
|
||||
@@ -214,7 +214,7 @@ namespace KDL {
|
||||
|
||||
class joint_type_exception: public std::exception{
|
||||
const char* what() const throw() override{
|
||||
return "Joint Type excption";}
|
||||
return "Joint Type exception";}
|
||||
} joint_type_ex;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user