[][src]Struct scad::ScadFile

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]

pub fn new() -> ScadFile[src]

pub fn get_code(&self) -> String[src]

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

pub fn add_object(&mut self, object: ScadObject)[src]

pub fn set_detail(&mut self, detail: i32)[src]

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

pub fn write_to_file(&self, path: String) -> bool[src]

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.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>,