writeobj: Write a tri-mesh object to a Wavefront OBJ 3D scene file

Description Usage Arguments Value Examples

View source: R/writeobj.R

Description

This function writes a tri-mesh object to a OBJ file, which a file format that is commonly used in 3D graphics applications. It does not represent text, but does represent points, lines, polygons.

Usage

1
writeobj(obj.file, m)

Arguments

obj.file

Path to an OBJ file

m

a tri-mesh object

Value

invisibly returns the name of the OBJ file to which the data was written.

Examples

1
2
3
4
5
data(refface)
ref.m <- refface$ref.m
obj.file <- tempfile(fileext = '.obj')
writeobj(obj.file, ref.m)
ref.m <- readobj(obj.file)

changebio/MAGPA documentation built on June 15, 2020, 9:26 p.m.