Struct scad_generator::ScadFile [] [src]

pub struct ScadFile { /* fields omitted */ }

Object that stores scad objects along with global parameters for the objects. Also has methods for writing the data to files.

Methods

impl ScadFile
[src]

Returns the code for the global parameters as well as all the children in the file

Sets the $fn variable for the whole file. This varibale defines the detail amount for cylindrical objects

Writes the resulting code to a file

Arguments

path: The path to the file where we want to write relative to the current working directory.

Returns

The function will return false and print a message to the console if writing fails.