tinyobj2shapelist3d

0th

Percentile

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

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

Usage
tinyobj2shapelist3d(x)
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:

  • diffuse -> mapped onto rgl material color field

  • ambient

  • specular

  • emission

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

Aliases
  • tinyobj2shapelist3d
Examples
# NOT RUN {
cube=read.obj(system.file("obj/cube.wavefront", package = "readobj"))
if(require("rgl")){
  cubesl=tinyobj2shapelist3d(cube)
  shade3d(cubesl)
}
# }
Documentation reproduced from package readobj, version 0.3.2, License: BSD_2_clause + file LICENSE

Community examples

Looks like there are no examples yet.