export_Material: Function to export a Material

Description Usage Arguments Value Author(s) Examples

Description

This function exports a Material as a .Material file.

Usage

1
export_Material(object, file.name)

Arguments

object

Material to export

file.name

character name of the .FLT file that will contain the Material properties.

Value

The function creates a new txt file containing the Material properties.

Author(s)

David Strebler, University of Cologne (Germany).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
example <- default_Material('example')
file.name <- 'example'

## Not run: 
export_Material(example, file.name)  # uncomment

## End(Not run)

# There is now an 'example.TL' and an 'example.OSL' file in the 'working directory'.
# These file are classical .txt files despite the extensions.

file.TL <- paste(getwd(),'/', file.name,'.TL', sep="")
print(file.TL)
# readLines(file.TL)

file.OSL <- paste(getwd(),'/', file.name,'.OSL', sep="")
print(file.OSL)
# readLines(file.OSL)

gadaviel/LumReader documentation built on May 16, 2019, 5:33 p.m.