Package theia :: Package rendering :: Module writer
[hide private]
[frames] | no frames]

Module writer

source code

Writer module for theia, to write CAD content to files.

Functions [hide private]
 
writeToCAD(component, doc)
Write the relevant FreeCAD objects of components in CAD file.
source code
 
writeTree(tree, doc)
Recursively write the shape and feature content of the beams of a tree.
source code
Function Details [hide private]

writeToCAD(component, doc)

source code 
Write the relevant FreeCAD objects of components in CAD file.

This function is for everything except for beams.
To the doc .fcstd file are added one object per optic and beam, they
    are of type Part::FeaturePython to allow for shapes and features.

The important functions are the PythonFeatures
    constructors found in features, and the shape functions found in shapes.

component: component to represent. [Mirror, Lens, BeamDump, Ghost, Beam]
doc: CAD file to write to. [CAD file]

No return value.

writeTree(tree, doc)

source code 
Recursively write the shape and feature content of the beams of a tree.

If the tree's root is not None, write the shape and feature for tree.Root
    and start over for the daughter trees.

tree: beamtree to write the info. [BeamTree]
doc: CAD file to write to. [CAD file]

No return value.