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

Class STLFile

source code

object --+
         |
        STLFile

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

Instance Methods [hide private]
 
__init__(self, fName=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
resetInfo(self)
Set cached info to nothing
source code
 
filename(self)
The filename (without the full patch)
source code
 
expectedToken(self, l, token, i) source code
 
patchInfo(self)
Get info about the patches.
source code
 
writeTo(self, fName)
Write to a file
source code
 
__iter__(self) source code
 
__iadd__(self, other) 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