read_obj {rayvertex}R Documentation

Load an OBJ file

Description

Loads an OBJ file and return a ray_mesh list structure. No processing is done on the object other than loading it (unlike obj_model()).

Usage

read_obj(filename, materialspath = NULL)

Arguments

filename

Filename of the OBJ file.

materialspath

Directory where the MTL file is located. Defaults to the directory of filename.

Value

ray_mesh list object #Load an arrow OBJ sphere = read_obj(system.file("extdata", "arrow.txt", package="rayvertex"))


[Package rayvertex version 0.11.4 Index]