Package PyFoam :: Package Basics :: Module STLFile :: Class STLFile
[hide private]
[frames] | no frames]

Class STLFile

source code


Store a complete STL-file and do simple manipulations with it

Instance Methods [hide private]
 
__iadd__(self, other) source code
 
__init__(self, fName=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__iter__(self) source code
 
erasePatches(self, patchNames)
Erase the patches in the list
source code
 
expectedToken(self, l, token, i) source code
 
filename(self)
The filename (without the full patch)
source code
 
mergePatches(self, patchNames, targetPatchName)
Merge the patches in the list and put them into a new patch
source code
 
patchInfo(self)
Get info about the patches.
source code
 
resetInfo(self)
Set cached info to nothing
source code
 
writeTo(self, fName)
Write to a file
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  noName = '<no name given>'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, fName=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • fName - filename of the STL-file. If None then an empty file is created
Overrides: object.__init__

patchInfo(self)

source code 

Get info about the patches. A list of dictionaries with the relevant information