Typos: Various workbenches and misc.
[skip ci]
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#* *
|
||||
#***************************************************************************
|
||||
|
||||
__title__="FreeCAD OpenSCAD Workbench - 2D helper fuctions"
|
||||
__title__="FreeCAD OpenSCAD Workbench - 2D helper functions"
|
||||
__author__ = "Sebastian Hoogen"
|
||||
__url__ = ["http://www.freecadweb.org"]
|
||||
|
||||
@@ -277,7 +277,7 @@ def findConnectedEdges(edgelist,eps=1e-6,debug=False):
|
||||
|
||||
def endpointdistance(edges):
|
||||
'''return the distance of of vertices in path (list of edges) as
|
||||
maximum, mininum and distance between start and endpoint
|
||||
maximum, minimum and distance between start and endpoint
|
||||
it expects the edges to be traversed forward from starting from Vertex 0'''
|
||||
numedges=len(edges)
|
||||
if numedges == 1 and len(edges[0].Vertexes) == 1:
|
||||
@@ -293,7 +293,7 @@ def endpointdistance(edges):
|
||||
|
||||
def endpointdistancedebuglist(debuglist):
|
||||
'''return the distance of of vertices in path (list of edges) as
|
||||
maximum, mininum and distance between start and endpoint
|
||||
maximum, minimum and distance between start and endpoint
|
||||
it it expects a 'not reversed' flag for every edge'''
|
||||
numedges=len(debuglist)
|
||||
if numedges == 1 and len(debuglist[0][0].Vertexes) == 1:
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#* *
|
||||
#***************************************************************************
|
||||
|
||||
__title__="FreeCAD OpenSCAD Workbench - Utility Fuctions"
|
||||
__title__="FreeCAD OpenSCAD Workbench - Utility Functions"
|
||||
__author__ = "Sebastian Hoogen"
|
||||
__url__ = ["http://www.freecadweb.org"]
|
||||
|
||||
@@ -89,7 +89,7 @@ def searchforopenscadexe():
|
||||
return opath
|
||||
|
||||
def workaroundforissue128needed():
|
||||
'''sets the import path depending on the OpenSCAD Verion
|
||||
'''sets the import path depending on the OpenSCAD Version
|
||||
for versions <= 2012.06.23 to the current working dir
|
||||
for versions above to the inputfile dir
|
||||
see https://github.com/openscad/openscad/issues/128'''
|
||||
@@ -161,7 +161,7 @@ def callopenscad(inputfilename,outputfilename=None,outputext='csg',keepname=Fals
|
||||
check_output2([osfilename,'-o',outputfilename, inputfilename])
|
||||
return outputfilename
|
||||
else:
|
||||
raise OpenSCADError('OpenSCAD executeable unavailable')
|
||||
raise OpenSCADError('OpenSCAD executable unavailable')
|
||||
|
||||
def callopenscadstring(scadstr,outputext='csg'):
|
||||
'''create a tempfile and call the open scad binary
|
||||
@@ -490,7 +490,7 @@ def process2D_ObjectsViaOpenSCADShape(ObjList,Operation,doc):
|
||||
# TBD: assure the given doc is active
|
||||
face = importDXFface(tmpfilename,None,None)
|
||||
#clean up
|
||||
filenames.append(tmpfilename) #delete the ouptut file as well
|
||||
filenames.append(tmpfilename) #delete the output file as well
|
||||
try:
|
||||
os.unlink(tmpfilename)
|
||||
except OSError:
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#* *
|
||||
#***************************************************************************
|
||||
|
||||
__title__="FreeCAD OpenSCAD Workbench - 2D helper fuctions"
|
||||
__title__="FreeCAD OpenSCAD Workbench - 2D helper functions"
|
||||
__author__ = "Sebastian Hoogen"
|
||||
__url__ = ["http://www.freecadweb.org"]
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#* *
|
||||
#***************************************************************************
|
||||
|
||||
__title__="FreeCAD OpenSCAD Workbench - expand placements and matrices fuctions"
|
||||
__title__="FreeCAD OpenSCAD Workbench - expand placements and matrices functions"
|
||||
__author__ = "Sebastian Hoogen"
|
||||
__url__ = ["http://www.freecadweb.org"]
|
||||
|
||||
|
||||
@@ -632,7 +632,7 @@ def process_linear_extrude(obj,h) :
|
||||
|
||||
def process_linear_extrude_with_twist(base,height,twist) :
|
||||
newobj=doc.addObject("Part::FeaturePython",'twist_extrude')
|
||||
Twist(newobj,base,height,-twist) #base is an FreeCAD Object, heigth and twist are floats
|
||||
Twist(newobj,base,height,-twist) #base is an FreeCAD Object, height and twist are floats
|
||||
if gui:
|
||||
if FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/OpenSCAD").\
|
||||
GetBool('useViewProviderTree'):
|
||||
|
||||
@@ -390,7 +390,7 @@ class Node:
|
||||
f=edgestofaces(edges)
|
||||
except Part.OCCError:
|
||||
FreeCAD.Console.PrintError(\
|
||||
'processing of dxf import faild\nPlease rework \'%s\' manualy\n' % layera)
|
||||
'processing of dxf import failed\nPlease rework \'%s\' manually\n' % layera)
|
||||
f=Part.Shape() #empty Shape
|
||||
obj=doc.addObject("Part::FeaturePython",'import_dxf_%s_%s'%(objname,layera))
|
||||
#obj=doc.addObject('Part::Feature',)
|
||||
@@ -549,7 +549,7 @@ class Node:
|
||||
child.pprint(level+1)
|
||||
|
||||
def pprint2(self,path='root',pathjust=24):
|
||||
"""prints the tree. Left column contains the the systax to access a child"""
|
||||
"""prints the tree. Left column contains the syntax to access a child"""
|
||||
if self.arguments:
|
||||
argstr = ' (%s)' % self.arguments
|
||||
else:
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
#* *
|
||||
#***************************************************************************
|
||||
|
||||
__title__="FreeCAD OpenSCAD Workbench - replace object fuction"
|
||||
__title__="FreeCAD OpenSCAD Workbench - replace object function"
|
||||
__author__ = "Sebastian Hoogen"
|
||||
__url__ = ["http://www.freecadweb.org"]
|
||||
|
||||
'''
|
||||
This fucntions allows to replace an object in the feature hierarchy
|
||||
This functions allows to replace an object in the feature hierarchy
|
||||
'''
|
||||
|
||||
def replaceobj(parent,oldchild,newchild):
|
||||
|
||||
Reference in New Issue
Block a user