PyFoam.Basics.STLFile module

Read a STL file and do simple manipulations

class PyFoam.Basics.STLFile.STLFile(fName=None)[source]

Bases: object

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

erasePatches(patchNames)[source]

Erase the patches in the list

expectedToken(l, token, i)[source]
filename()[source]

The filename (without the full patch)

mergePatches(patchNames, targetPatchName)[source]

Merge the patches in the list and put them into a new patch

noName = '<no name given>'
patchInfo()[source]

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

resetInfo()[source]

Set cached info to nothing

writeTo(fName)[source]

Write to a file