tinyobj2shapelist3d: Convert the raw tinyobjloader shapes/materials list into an...

Description Usage Arguments Details Value See Also Examples

View source: R/mesh3d.R

Description

Convert the raw tinyobjloader shapes/materials list into an rgl shapelist3d

Usage

1

Arguments

x

A raw tinyobjloader shapes/materials list

Details

Not all materials settings can be processed at the moment. In particular only the following are used:

Value

a list of class shapelist3d containing a mesh3d for each object or group element in the original OBJ file.

See Also

read.obj, mesh3d, shapelist3d, rgl.material

Examples

1
2
3
4
5
cube=read.obj(system.file("obj/cube.wavefront", package = "readobj"))
if(require("rgl")){
  cubesl=tinyobj2shapelist3d(cube)
  shade3d(cubesl)
}

readobj documentation built on July 3, 2021, 9:07 a.m.