Misc. typos
+ stepcode typo submitted upsream https://github.com/stepcode/stepcode/pull/372
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
|
||||
namespace AssemblyGui {
|
||||
|
||||
//class for internal use to alllow access to protected functions of view provider part.
|
||||
//class for internal use to allow access to protected functions of view provider part.
|
||||
class AssemblyGuiExport ViewProviderConstraintInternal : public PartGui::ViewProviderPart {
|
||||
|
||||
PROPERTY_HEADER(AssemblyGui::ViewProviderConstraintInternal);
|
||||
|
||||
@@ -277,7 +277,7 @@ class DraftTool:
|
||||
self.commitList.append((name,func))
|
||||
|
||||
def getStrings(self,addrot=None):
|
||||
"returns a couple of useful strings fro building python commands"
|
||||
"returns a couple of useful strings for building python commands"
|
||||
|
||||
# current plane rotation
|
||||
p = plane.getRotation()
|
||||
|
||||
@@ -580,7 +580,7 @@ def SQRT(V):
|
||||
# ===================
|
||||
#15.24 Tan - arithmetic function
|
||||
#FUNCTION TAN ( V:NUMBER ) : REAL;
|
||||
#The tan function returns the tangent of of an angle.
|
||||
#The tan function returns the tangent of an angle.
|
||||
#Parameters : V is a number representing an angle expressed in radians.
|
||||
#Result : The tangent of the angle. If the angle is npi/2, where n is an odd integer, indeterminate
|
||||
#(?) is returned.
|
||||
|
||||
@@ -276,9 +276,9 @@ def findConnectedEdges(edgelist,eps=1e-6,debug=False):
|
||||
return retlist
|
||||
|
||||
def endpointdistance(edges):
|
||||
'''return the distance of of vertices in path (list of edges) as
|
||||
'''return the distance of vertices in path (list of edges) as
|
||||
maximum, minimum and distance between start and endpoint
|
||||
it expects the edges to be traversed forward from starting from Vertex 0'''
|
||||
it expects the edges to be traversed forward starting from Vertex 0'''
|
||||
numedges=len(edges)
|
||||
if numedges == 1 and len(edges[0].Vertexes) == 1:
|
||||
return 0.0,0.0,0.0
|
||||
@@ -292,9 +292,9 @@ def endpointdistance(edges):
|
||||
return 0.0,0.0,outerdistance
|
||||
|
||||
def endpointdistancedebuglist(debuglist):
|
||||
'''return the distance of of vertices in path (list of edges) as
|
||||
'''return the distance of vertices in path (list of edges) as
|
||||
maximum, minimum and distance between start and endpoint
|
||||
it it expects a 'not reversed' flag for every edge'''
|
||||
it expects a 'not reversed' flag for every edge'''
|
||||
numedges=len(debuglist)
|
||||
if numedges == 1 and len(debuglist[0][0].Vertexes) == 1:
|
||||
return 0.0,0.0,0.0
|
||||
|
||||
@@ -1302,7 +1302,7 @@ Base::Placement AttachEngine3D::calculateAttachedPlacement(Base::Placement origP
|
||||
case mmFrenetTB:
|
||||
if (N.Magnitude() == 0.0)
|
||||
throw Base::ValueError("AttachEngine3D::calculateAttachedPlacement: Frenet-Serret normal is undefined. Can't align to TB plane.");
|
||||
SketchNormal = N.Reversed();//it is more convenient to sketch on something looking it it so it is convex.
|
||||
SketchNormal = N.Reversed();//it is more convenient to sketch on something looking at it so it is convex.
|
||||
SketchXAxis = T;
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -52,7 +52,7 @@ protected:
|
||||
|
||||
public:
|
||||
|
||||
/// Constructer
|
||||
/// Constructor
|
||||
TopoShapePyOld(PyTypeObject *T = &Type);
|
||||
TopoShapePyOld(const TopoDS_Shape &cShape, PyTypeObject *T = &TopoShapePyOld::Type);
|
||||
/// for Construction in python
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace PartGui
|
||||
*/
|
||||
bool getShapeFromStrings(TopoDS_Shape &shapeOut, const std::string &doc, const std::string &object, const std::string &sub);
|
||||
/*!examine pre selection
|
||||
* @param shape1 firt shape in current selection
|
||||
* @param shape1 first shape in current selection
|
||||
* @param shape2 second shape in current selection
|
||||
* @return signal if preselection is valid. false means shape1 and shape2 are invalid.
|
||||
*/
|
||||
@@ -349,7 +349,7 @@ private:
|
||||
/*!start of the measure angular command*/
|
||||
void goDimensionAngularRoot();
|
||||
/*!examine angular pre selection
|
||||
* @param vector1Out firt shape in current selection
|
||||
* @param vector1Out first shape in current selection
|
||||
* @param vector2Out second shape in current selection
|
||||
* @return signal if preselection is valid. false means vector1Out and vector2Out are invalid.
|
||||
*/
|
||||
|
||||
@@ -111,7 +111,7 @@ void ViewProviderBody::setDisplayMode(const char* ModeName) {
|
||||
|
||||
//if we show "Through" we must avoid to set the display mask modes, as this would result
|
||||
//in going into "tip" mode. When through is chosen the child features are displayed, and all
|
||||
//we need to ensure is that the display mode change is propagated to them fro within the
|
||||
//we need to ensure is that the display mode change is propagated to them from within the
|
||||
//onChanged() method.
|
||||
if(DisplayModeBody.getValue() == 1)
|
||||
PartGui::ViewProviderPartExt::setDisplayMode(ModeName);
|
||||
|
||||
@@ -108,7 +108,7 @@ void RobotAlgos::Test(void)
|
||||
kinematics_status = fksolver.JntToCart(jointpositions,cartpos);
|
||||
if(kinematics_status>=0){
|
||||
std::cout << cartpos <<std::endl;
|
||||
printf("%s \n","Succes, thanks KDL!");
|
||||
printf("%s \n","Success, thanks KDL!");
|
||||
}else{
|
||||
printf("%s \n","Error: could not calculate forward kinematics :(");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user