Misc. Typos
This commit is contained in:
@@ -193,7 +193,7 @@ boost::shared_ptr< Geometry3D > PartRef::getGeometry3D(const char* Type) {
|
||||
break;
|
||||
}
|
||||
default:
|
||||
Base::Console().Message("Unsuported Surface Geometrie Type at selection\n");
|
||||
Base::Console().Message("Unsupported Surface Geometry Type at selection\n");
|
||||
return boost::shared_ptr< Geometry3D >();
|
||||
}
|
||||
|
||||
@@ -209,7 +209,7 @@ boost::shared_ptr< Geometry3D > PartRef::getGeometry3D(const char* Type) {
|
||||
break;
|
||||
}
|
||||
default:
|
||||
Base::Console().Message("Unsuported Curve Geometrie Type at selection \n");
|
||||
Base::Console().Message("Unsupported Curve Geometry Type at selection \n");
|
||||
return boost::shared_ptr< Geometry3D >();
|
||||
}
|
||||
|
||||
@@ -222,7 +222,7 @@ boost::shared_ptr< Geometry3D > PartRef::getGeometry3D(const char* Type) {
|
||||
|
||||
}
|
||||
else {
|
||||
Base::Console().Message("Unsuported Topologie Type at selection\n");
|
||||
Base::Console().Message("Unsupported Topology Type at selection\n");
|
||||
return boost::shared_ptr< Geometry3D >();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -129,7 +129,7 @@ void CmdAssemblyConstraint::activated(int iMsg)
|
||||
//Assembly::ProductRef* Asm = 0;
|
||||
//Assembly::ConstraintGroup* ConstGrp = 0;
|
||||
|
||||
//// retrive the standard objects needed
|
||||
//// retrieve the standard objects needed
|
||||
//if(getConstraintPrerequisits(&Asm, &ConstGrp))
|
||||
// return;
|
||||
|
||||
@@ -213,7 +213,7 @@ void CmdAssemblyConstraintDistance::activated(int iMsg)
|
||||
//Assembly::ProductRef* Asm = 0;
|
||||
//Assembly::ConstraintGroup* ConstGrp = 0;
|
||||
|
||||
//// retrive the standard objects needed
|
||||
//// retrieve the standard objects needed
|
||||
//if(getConstraintPrerequisits(&Asm, &ConstGrp))
|
||||
// return;
|
||||
|
||||
@@ -280,7 +280,7 @@ void CmdAssemblyConstraintFix::activated(int iMsg)
|
||||
//Assembly::ProductRef* Asm = 0;
|
||||
//Assembly::ConstraintGroup* ConstGrp = 0;
|
||||
|
||||
//// retrive the standard objects needed
|
||||
//// retrieve the standard objects needed
|
||||
//if(getConstraintPrerequisits(&Asm, &ConstGrp))
|
||||
// return;
|
||||
|
||||
@@ -345,7 +345,7 @@ void CmdAssemblyConstraintAngle::activated(int iMsg)
|
||||
//Assembly::ProductRef* Asm = 0;
|
||||
//Assembly::ConstraintGroup* ConstGrp = 0;
|
||||
|
||||
//// retrive the standard objects needed
|
||||
//// retrieve the standard objects needed
|
||||
//if(getConstraintPrerequisits(&Asm, &ConstGrp))
|
||||
// return;
|
||||
|
||||
@@ -414,7 +414,7 @@ void CmdAssemblyConstraintOrientation::activated(int iMsg)
|
||||
//Assembly::ProductRef* Asm = 0;
|
||||
//Assembly::ConstraintGroup* ConstGrp = 0;
|
||||
|
||||
//// retrive the standard objects needed
|
||||
//// retrieve the standard objects needed
|
||||
//if(getConstraintPrerequisits(&Asm, &ConstGrp))
|
||||
// return;
|
||||
|
||||
@@ -482,7 +482,7 @@ void CmdAssemblyConstraintCoincidence::activated(int iMsg)
|
||||
//Assembly::ProductRef* Asm = 0;
|
||||
//Assembly::ConstraintGroup* ConstGrp = 0;
|
||||
|
||||
//// retrive the standard objects needed
|
||||
//// retrieve the standard objects needed
|
||||
//if(getConstraintPrerequisits(&Asm, &ConstGrp))
|
||||
// return;
|
||||
|
||||
@@ -550,7 +550,7 @@ void CmdAssemblyConstraintAlignment::activated(int iMsg)
|
||||
//Assembly::ProductRef* Asm = 0;
|
||||
//Assembly::ConstraintGroup* ConstGrp = 0;
|
||||
|
||||
//// retrive the standard objects needed
|
||||
//// retrieve the standard objects needed
|
||||
//if(getConstraintPrerequisits(&Asm, &ConstGrp))
|
||||
// return;
|
||||
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
|
||||
"""Simple Part21 STEP reader
|
||||
|
||||
Reads a given STEP file. Maps the enteties and instaciate the
|
||||
corosbonding classes.
|
||||
Reads a given STEP file. Maps the entities and instantiate the
|
||||
corresponding classes.
|
||||
In addition it writes out a graphwiz file with the entity graph.
|
||||
"""
|
||||
|
||||
@@ -92,7 +92,7 @@ class SimpleParser:
|
||||
gvFile.write('}\n')
|
||||
|
||||
def instaciate(self):
|
||||
"""Instaciate the python classe from the enteties"""
|
||||
"""Instantiate the python class from the entities"""
|
||||
import inspect
|
||||
# load the needed schema module
|
||||
if self._p21loader.get_schema_name() == 'config_control_design':
|
||||
@@ -149,7 +149,7 @@ class SimpleParser:
|
||||
else:
|
||||
self._create_entity_instance(key)
|
||||
if key not in self.instanceMape:
|
||||
raise NameError("Needed instance not instanciated: ",key)
|
||||
raise NameError("Needed instance not instantiated: ",key)
|
||||
else:
|
||||
attrList[n] = self.instanceMape[key]
|
||||
elif i[0] == '$':
|
||||
|
||||
@@ -15,13 +15,13 @@
|
||||
<Author Licence="LGPL" Name="Juergen Riegel" EMail="Juergen.Riegel@web.de" />
|
||||
<DeveloperDocu>StepShape in a Import</DeveloperDocu>
|
||||
<UserDocu>StepShape in Import
|
||||
This class gives a interface to retrive TopoShapes out of an loaded STEP file of any kind.
|
||||
This class gives a interface to retrieve TopoShapes out of an loaded STEP file of any kind.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="read">
|
||||
<Documentation>
|
||||
<UserDocu>method read()
|
||||
Read a STEP file into memory and makeit accessably
|
||||
Read a STEP file into memory and make it accessible
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
|
||||
@@ -20,12 +20,12 @@ else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Helper function to retrive string from X,Y position in csv file
|
||||
# Helper function to retrieve string from X,Y position in csv file
|
||||
function get_xy() {
|
||||
VALUE_XY=$(cat $MATERIALS_FILE.csv | awk -v x=$X -v y=$Y -F\| 'NR==y {print $x}' | sed 's/\"//g')
|
||||
}
|
||||
|
||||
#Determine number of columns and rows in the Materials.csv file
|
||||
# Determine number of columns and rows in the Materials.csv file
|
||||
NUMBER_OF_COLUMNS=$(cat $MATERIALS_FILE.csv | awk --field-separator="|" "NR==1 { print NF }")
|
||||
NUMBER_OF_ROWS=$(cat $MATERIALS_FILE.csv | wc -l)
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ void CurveProjector::writeIntersectionPointsToFile(const char *name)
|
||||
|
||||
//**************************************************************************
|
||||
//**************************************************************************
|
||||
// Seperator for additional classes
|
||||
// Separator for additional classes
|
||||
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
CurveProjectorShape::CurveProjectorShape(const TopoDS_Shape &aShape, const MeshKernel &pMesh)
|
||||
@@ -243,7 +243,7 @@ bool CurveProjectorShape::findStartPoint(const MeshKernel &MeshK,const Base::Vec
|
||||
|
||||
//**************************************************************************
|
||||
//**************************************************************************
|
||||
// Seperator for CurveProjectorSimple classe
|
||||
// Separator for CurveProjectorSimple classes
|
||||
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
|
||||
@@ -557,7 +557,7 @@ bool CurveProjectorSimple::findStartPoint(const MeshKernel &MeshK,const Base::Ve
|
||||
|
||||
//**************************************************************************
|
||||
//**************************************************************************
|
||||
// Seperator for CurveProjectorSimple classe
|
||||
// Separator for CurveProjectorSimple classes
|
||||
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ void MeshAlgos::offset(MeshCore::MeshKernel* Mesh, float fSize)
|
||||
std::vector<Base::Vector3f> normals = Mesh->CalcVertexNormals();
|
||||
|
||||
unsigned int i = 0;
|
||||
// go throug all the Vertex normales
|
||||
// go through all the Vertex normals
|
||||
for(std::vector<Base::Vector3f>::iterator It= normals.begin();It != normals.end();++It,i++)
|
||||
// and move each mesh point in the normal direction
|
||||
Mesh->MovePoint(i,It->Normalize() * fSize);
|
||||
@@ -75,7 +75,7 @@ void MeshAlgos::offsetSpecial2(MeshCore::MeshKernel* Mesh, float fSize)
|
||||
|
||||
unsigned int i = 0;
|
||||
|
||||
// go throug all the Vertex normales
|
||||
// go through all the Vertex normals
|
||||
for(std::vector<Base::Vector3f>::iterator It= PointNormals.begin();It != PointNormals.end();++It,i++){
|
||||
builder.addSingleLine(Mesh->GetPoint(i),Mesh->GetPoint(i)+It->Normalize() * fSize);
|
||||
// and move each mesh point in the normal direction
|
||||
@@ -125,7 +125,7 @@ void MeshAlgos::offsetSpecial(MeshCore::MeshKernel* Mesh, float fSize, float zma
|
||||
std::vector<Base::Vector3f> normals = Mesh->CalcVertexNormals();
|
||||
|
||||
unsigned int i = 0;
|
||||
// go throug all the Vertex normales
|
||||
// go through all the Vertex normals
|
||||
for(std::vector<Base::Vector3f>::iterator It= normals.begin();It != normals.end();++It,i++)
|
||||
{
|
||||
Base::Vector3f Pnt = Mesh->GetPoint(i);
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace MeshPart
|
||||
class MeshPartExport MeshAlgos
|
||||
{
|
||||
public:
|
||||
/** Calculate per Vertex normales and adds the Normal property bag
|
||||
/** Calculate per Vertex normals and adds the Normal property bag
|
||||
*/
|
||||
static void offset(MeshCore::MeshKernel* Mesh, float fSize);
|
||||
static void offsetSpecial2(MeshCore::MeshKernel* Mesh, float fSize);
|
||||
|
||||
@@ -70,7 +70,7 @@ public:
|
||||
/**
|
||||
* Verifies the linked Profile and returns it if it is a valid 2D object
|
||||
* @param silent if profile property is malformed and the parameter is true
|
||||
* silently returns nullptr, otherwice throw a Base::Exception.
|
||||
* silently returns nullptr, otherwise throw a Base::Exception.
|
||||
* Default is false.
|
||||
*/
|
||||
Part::Part2DObject* getVerifiedSketch(bool silent=false) const;
|
||||
@@ -78,7 +78,7 @@ public:
|
||||
/**
|
||||
* Verifies the linked Profile and returns it if it is a valid object
|
||||
* @param silent if profile property is malformed and the parameter is true
|
||||
* silently returns nullptr, otherwice throw a Base::Exception.
|
||||
* silently returns nullptr, otherwise throw a Base::Exception.
|
||||
* Default is false.
|
||||
*/
|
||||
Part::Feature* getVerifiedObject(bool silent=false) const;
|
||||
@@ -86,7 +86,7 @@ public:
|
||||
/**
|
||||
* Verifies the linked Object and returns the shape used as profile
|
||||
* @param silent if profirle property is malformed and the parameter is true
|
||||
* silently returns nullptr, otherwice throw a Base::Exception.
|
||||
* silently returns nullptr, otherwise throw a Base::Exception.
|
||||
* Default is false.
|
||||
*/
|
||||
TopoDS_Shape getVerifiedFace(bool silent = false) const;
|
||||
|
||||
@@ -348,7 +348,7 @@ void CmdPartDesignMigrate::activated(int iMsg)
|
||||
std::set<PartDesign::Feature*> migrateFeatures;
|
||||
|
||||
|
||||
// Retrive all PartDesign Features objects and filter out features already belongs to some body
|
||||
// Retrieve all PartDesign Features objects and filter out features already belonging to some body
|
||||
for ( const auto & feat: doc->getObjects( ) ) {
|
||||
if( feat->isDerivedFrom( PartDesign::Feature::getClassTypeId() ) &&
|
||||
!PartDesign::Body::findBodyOf( feat ) && PartDesign::Body::isSolidFeature ( feat ) ) {
|
||||
@@ -414,8 +414,8 @@ void CmdPartDesignMigrate::activated(int iMsg)
|
||||
if ( std::next ( baseFeatIt ) == chainIt->end() ) {
|
||||
// just append our chain to already found
|
||||
chainIt->splice ( chainIt->end(), chain );
|
||||
// TODO If we will hit a third part everything will be messed up again.
|
||||
// Probably it will require a yet another smart-ass find_if. (2015-08-10, Fat-Zer)
|
||||
// TODO: If we will hit a third part everything will be messed up again.
|
||||
// Probably it will require a yet another smart-ass find_if. (2015-08-10, Fat-Zer)
|
||||
} else {
|
||||
// We have a fork of a partDesign feature here
|
||||
// add a chain for current body
|
||||
@@ -430,7 +430,7 @@ void CmdPartDesignMigrate::activated(int iMsg)
|
||||
// The feature is not present in list pending for migration,
|
||||
// This generally shouldn't happen but may be if we run into some broken file
|
||||
// Try to find out the body we should insert into
|
||||
// TODO Some error/warning is needed here (2015-08-10, Fat-Zer)
|
||||
// TODO: Some error/warning is needed here (2015-08-10, Fat-Zer)
|
||||
auto newChainIt = featureChains.emplace (featureChains.end());
|
||||
newChainIt->splice (newChainIt->end(), chain);
|
||||
}
|
||||
@@ -438,10 +438,10 @@ void CmdPartDesignMigrate::activated(int iMsg)
|
||||
}
|
||||
migrateFeatures.erase ( featIt );
|
||||
featIt = migrateFeatures.begin ();
|
||||
// TODO Align visibility (2015-08-17, Fat-Zer)
|
||||
// TODO: Align visibility (2015-08-17, Fat-Zer)
|
||||
} /* for */
|
||||
|
||||
// TODO make it work without parts (2015-09-04, Fat-Zer)
|
||||
// TODO: make it work without parts (2015-09-04, Fat-Zer)
|
||||
// add a part if there is no active yet
|
||||
App::Part *actPart = PartDesignGui::assertActivePart ();
|
||||
|
||||
@@ -518,7 +518,7 @@ void CmdPartDesignMigrate::activated(int iMsg)
|
||||
arg(QString::fromUtf8(sketch->Label.getValue()) ) );
|
||||
}
|
||||
} else {
|
||||
// TODO Message that sketchbased is based not on a sketch (2015-08-11, Fat-Zer)
|
||||
// TODO: Message that sketchbased is based not on a sketch (2015-08-11, Fat-Zer)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -922,8 +922,8 @@ void CmdPartDesignMoveFeatureInTree::activated(int iMsg)
|
||||
}
|
||||
|
||||
// Remove and re-insert the feature to/from the Body
|
||||
// TODO if tip was moved the new position of tip is quite undetermined (2015-08-07, Fat-Zer)
|
||||
// TODO warn the user if we are moving an object to some place before the object's link (2015-08-07, Fat-Zer)
|
||||
// TODO: if tip was moved the new position of tip is quite undetermined (2015-08-07, Fat-Zer)
|
||||
// TODO: warn the user if we are moving an object to some place before the object's link (2015-08-07, Fat-Zer)
|
||||
doCommand ( Doc,"App.activeDocument().%s.removeObject(App.activeDocument().%s)",
|
||||
body->getNameInDocument(), feat->getNameInDocument() );
|
||||
doCommand ( Doc, "App.activeDocument().%s.insertObject(App.activeDocument().%s, %s, True)",
|
||||
|
||||
@@ -69,7 +69,7 @@ void ViewProviderDatumPlane::attach ( App::DocumentObject *obj ) {
|
||||
getShapeRoot ()->addChild(lineSet);
|
||||
|
||||
PartGui::SoBrepFaceSet *faceSet = new PartGui::SoBrepFaceSet();
|
||||
// SoBrepFaceSet supports only triangles (otherwice we recive incorrect highlighting
|
||||
// SoBrepFaceSet supports only triangles (otherwise we receive incorrect highlighting)
|
||||
faceSet->partIndex.set1Value(0, 2); // One face, two triangles
|
||||
faceSet->coordIndex.setNum(8);
|
||||
// first triangle
|
||||
|
||||
@@ -167,7 +167,7 @@ Workflow WorkflowManager::determinWorkflow( App::Document *doc) {
|
||||
msgBox.addButton ( QMessageBox::No );
|
||||
}
|
||||
msgBox.setDefaultButton ( yesBtn );
|
||||
// TODO Add some description of manual migration mode (2015-08-09, Fat-Zer)
|
||||
// TODO: Add some description of manual migration mode (2015-08-09, Fat-Zer)
|
||||
|
||||
msgBox.exec();
|
||||
|
||||
@@ -192,7 +192,7 @@ void WorkflowManager::forceWorkflow( const App::Document *doc, Workflow wf) {
|
||||
}
|
||||
|
||||
Workflow WorkflowManager::guessWorkflow(const App::Document *doc) {
|
||||
// Retrive bodies of the document
|
||||
// Retrieve bodies of the document
|
||||
auto features = doc->getObjectsOfType( PartDesign::Feature::getClassTypeId() );
|
||||
|
||||
if( features.empty() ) {
|
||||
@@ -212,7 +212,7 @@ Workflow WorkflowManager::guessWorkflow(const App::Document *doc) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
// if there are features not belonging to any body itmeans that migration was incomplete, otherwice it's Modern
|
||||
// if there are features not belonging to any body it means that migration was incomplete, otherwise it's Modern
|
||||
return features_without_bodies ? Workflow::Undetermined : Workflow::Modern;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -627,7 +627,7 @@ void ViewProviderPath::updateVisual(bool rebuild) {
|
||||
}
|
||||
}
|
||||
|
||||
// count = index + seperators
|
||||
// count = index + separators
|
||||
edgeStart = -1;
|
||||
int i;
|
||||
for(i=StartIndex.getValue();i<(int)command2Edge.size();++i)
|
||||
|
||||
@@ -144,7 +144,7 @@ class ViewProvider(object):
|
||||
return self.OpIcon
|
||||
|
||||
def getTaskPanelOpPage(self, obj):
|
||||
'''getTaskPanelOpPage(obj) ... use the stored information to instanciate the receiver op's page controller.'''
|
||||
'''getTaskPanelOpPage(obj) ... use the stored information to instantiate the receiver op's page controller.'''
|
||||
mod = importlib.import_module(self.OpPageModule)
|
||||
cls = getattr(mod, self.OpPageClass)
|
||||
return cls(obj, 0)
|
||||
|
||||
@@ -187,7 +187,7 @@ private:
|
||||
&Arg[0],&PyTuple_Type, &Arg[1],&PyTuple_Type, &Arg[2],&PyTuple_Type, &Arg[3]))
|
||||
throw Py::Exception();
|
||||
|
||||
// go throug the Tuple of Tuples
|
||||
// go through the Tuple of Tuples
|
||||
for (int i=0;i<4;i++) {
|
||||
// check the right size of the Tuple of floats
|
||||
if (PyTuple_GET_SIZE(Arg[i]) != 3)
|
||||
|
||||
@@ -79,13 +79,13 @@ App::DocumentObjectExecReturn *Edge2TracObject::execute(void)
|
||||
// container for all the edges
|
||||
std::vector<TopoDS_Edge> edges;
|
||||
|
||||
// run throug the edge name and get the real objects from the TopoShape
|
||||
// run through the edge name and get the real objects from the TopoShape
|
||||
for (std::vector<std::string>::const_iterator it= SubVals.begin();it!=SubVals.end();++it) {
|
||||
TopoDS_Edge edge = TopoDS::Edge(TopShape.getSubShape(it->c_str()));
|
||||
edges.push_back(edge);
|
||||
}
|
||||
|
||||
// instanciate a edge cluster sorter and get the result
|
||||
// instantiate an edge cluster sorter and get the result
|
||||
Part::Edgecluster acluster(edges);
|
||||
Part::tEdgeClusterVector aclusteroutput = acluster.GetClusters();
|
||||
|
||||
@@ -102,7 +102,7 @@ App::DocumentObjectExecReturn *Edge2TracObject::execute(void)
|
||||
Robot::Trajectory trac;
|
||||
bool first = true;
|
||||
|
||||
// cycle trough the cluster
|
||||
// cycle through the cluster
|
||||
for(std::vector<std::vector<TopoDS_Edge> >::const_iterator it=aclusteroutput.begin();it!=aclusteroutput.end();++it)
|
||||
{
|
||||
// cycle through the edges of the cluster
|
||||
|
||||
@@ -67,7 +67,7 @@ App.activeDocument().Robot.RobotKinematicFile = App.getResourceDir()+"Mod/Robot/
|
||||
App.activeDocument().Robot.Axis2 = -90
|
||||
App.activeDocument().Robot.Axis3 = 90
|
||||
|
||||
# retrive the Tcp position
|
||||
# retrieve the Tcp position
|
||||
pos = App.getDocument("Unnamed").getObject("Robot").Tcp
|
||||
# move the robot
|
||||
pos.move(App.Vector(-10,0,0))
|
||||
|
||||
@@ -116,7 +116,7 @@ void QGIViewAnnotation::draw()
|
||||
}
|
||||
}
|
||||
|
||||
//TODO: text is position slightly high (and left??) on page save to SVG file
|
||||
//TODO: text is positioned slightly high (and left??) on page save to SVG file
|
||||
|
||||
void QGIViewAnnotation::drawAnnotation()
|
||||
{
|
||||
@@ -127,7 +127,7 @@ void QGIViewAnnotation::drawAnnotation()
|
||||
|
||||
const std::vector<std::string>& annoText = viewAnno->Text.getValues();
|
||||
|
||||
//build HTML/CSS formating around Text lines
|
||||
//build HTML/CSS formatting around Text lines
|
||||
std::stringstream ss;
|
||||
ss << "<html>\n<head>\n<style>\n";
|
||||
ss << "p {";
|
||||
|
||||
Reference in New Issue
Block a user