Package readobj. November 2, 2017

Similar documents
Package ECctmc. May 1, 2018

Package strat. November 23, 2016

Package datasets.load

Package farver. November 20, 2018

Package kdtools. April 26, 2018

Package validara. October 19, 2017

Package hyphenatr. August 29, 2016

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package Rtsne. April 14, 2017

Package fastdummies. January 8, 2018

Package bigreadr. R topics documented: August 13, Version Date Title Read Large Text Files

Package AhoCorasickTrie

Package spark. July 21, 2017

Package rtext. January 23, 2019

Package fasttextr. May 12, 2017

Package combiter. December 4, 2017

Package tidyselect. October 11, 2018

Package nngeo. September 29, 2018

Package ompr. November 18, 2017

Package jdx. R topics documented: January 9, Type Package Title 'Java' Data Exchange for 'R' and 'rjava'

Package wrswor. R topics documented: February 2, Type Package

Package pdfsearch. July 10, 2018

Package fst. December 18, 2017

Package clipr. June 23, 2018

Package available. November 17, 2017

Package vdiffr. April 27, 2018

Package purrrlyr. R topics documented: May 13, Title Tools at the Intersection of 'purrr' and 'dplyr' Version 0.0.2

Package SEMrushR. November 3, 2018

Package triebeard. August 29, 2016

Package readxl. April 18, 2017

Package semver. January 6, 2017

Package dbx. July 5, 2018

Package meshsimp. June 13, 2017

Package messaging. May 27, 2018

Package geogrid. August 19, 2018

Package pwrab. R topics documented: June 6, Type Package Title Power Analysis for AB Testing Version 0.1.0

Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package gifti. February 1, 2018

Package sparsehessianfd

Package RPresto. July 13, 2017

Package IATScore. January 10, 2018

Package coga. May 8, 2018

Package barcoder. October 26, 2018

Package nmslibr. April 14, 2018

Package fastrtext. December 10, 2017

Package EvolutionaryGames

Package jstree. October 24, 2017

Package deductive. June 2, 2017

Package fst. June 7, 2018

Package robotstxt. November 12, 2017

Package pkgbuild. October 16, 2018

Package queuecomputer

Package shinyfeedback

Package canvasxpress

Package oec. R topics documented: May 11, Type Package

Package crossword.r. January 19, 2018

Package gggenes. R topics documented: November 7, Title Draw Gene Arrow Maps in 'ggplot2' Version 0.3.2

Package brainr. R topics documented: October 12, Type Package

Package WordR. September 7, 2017

Package sankey. R topics documented: October 22, 2017

Package gridgraphics

Package bisect. April 16, 2018

Package ggimage. R topics documented: November 1, Title Use Image in 'ggplot2' Version 0.0.7

Package librarian. R topics documented:

Package humanize. R topics documented: April 4, Version Title Create Values for Human Consumption

Package comparedf. February 11, 2019

Package profvis. R topics documented:

Package jpmesh. December 4, 2017

Package repec. August 31, 2018

Package weco. May 4, 2018

Package ecoseries. R topics documented: September 27, 2017

Package glcm. August 29, 2016

Package eply. April 6, 2018

Package tidyimpute. March 5, 2018

Package tibble. August 22, 2017

Package apastyle. March 29, 2017

Package projector. February 27, 2018

Package nlgeocoder. October 8, 2018

Package raker. October 10, 2017

Package mdftracks. February 6, 2017

Package regexselect. R topics documented: September 22, Version Date Title Regular Expressions in 'shiny' Select Lists

Package climber. R topics documented:

Package postgistools

Package SimilaR. June 21, 2018

Package tiler. June 9, 2018

Package knitrprogressbar

Package synchronicity

Package slickr. March 6, 2018

Package nabor. May 20, 2017

Package labelvector. July 28, 2018

Package fitbitscraper

Package reticulate. November 24, 2017

Package elmnnrcpp. July 21, 2018

Package goodpractice

Package reconstructr

Package ibm. August 29, 2016

Package catchr. R topics documented: December 30, Type Package. Title Catch, Collect, and Raise Conditions. Version 0.1.0

Package RcppParallel

Package autocogs. September 22, Title Automatic Cognostic Summaries Version 0.1.1

Package kirby21.base

Transcription:

Type Package Package readobj November 2, 2017 Title Fast Reader for 'Wavefront' OBJ 3D Scene Files Version 0.3 Wraps 'tiny_obj_loader' C++ library for reading the 'Wavefront' OBJ 3D file format including both mesh objects and materials files. The resultant R objects are either structured to match the 'tiny_obj_loader' internal data representation or in a form directly compatible with the 'rgl' package. License BSD_2_clause + file LICENSE LazyData TRUE Imports Rcpp (>= 0.11.6), grdevices LinkingTo Rcpp Suggests testthat, rgl RoxygenNote 6.0.1 NeedsCompilation yes Author Gregory Jefferis [aut, cph, cre], Syoyo Fujita [aut, cph] (tiny_obj_loader.* are copyright Syoyo Fujita) Maintainer Gregory Jefferis <jefferis@gmail.com> Repository CRAN Date/Publication 2017-11-02 19:10:13 UTC R topics documented: readobj-package....................................... 2 read.obj........................................... 2 tinyobj2shapelist3d..................................... 3 Index 5 1

2 read.obj readobj-package Wrapper for tiny_obj_loader single file C++ library This package provides fast reading of Wavefront OBJ files with support for some material properties using the tinyobjloader C++ library. It is noticeably faster than the pure R readobj implemented in the rgl package. Details Note that the rgl package does provide a writeobj function, whereas this library only focusses on fast reading of OBJ files. read.obj, readobj read.obj Read a Wavefront OBJ 3D scene file into an R list Read a Wavefront OBJ 3D scene file into an R list Usage read.obj(f, materialspath = NULL, convert.rgl = FALSE) Arguments f materialspath convert.rgl Path to an OBJ file Path to a folder containing materials files. This is optional and only required if materials files are in a different folder from the OBJ file defined by f. Whether to convert the returned list to a rgl::shapelist3d object containing rgl::mesh3d objects. Value When convert.rgl=false, the default, a named list with items shapes and materials, each containing sublists with one entry per object (shapes) or material (materials). Objects in the shapes list have the following structure positions 3xN set of 3D vertices

tinyobj2shapelist3d 3 normals 3xN set of normal directions for each vertex (has 3 rows and 0 cols when normals are not available) texcoords vector containing unprocessed texture coordinates indices 3/4xM set of indices into vertex array (trimesh/quadmesh) 0-indexed material_ids (0-indexed, -1 when not set) When convert.rgl=false a list of class shapelist3d containing a mesh3d for each object or group element in the original OBJ file. See tinyobj2shapelist3d for details of rgl conversion. tinyobj2shapelist3d, rgl::readobj for simpler, pure R implementation. Examples cube=read.obj(system.file("obj/cube.obj", package = "readobj")) str(cube, max.level = 3) # demonstrate direct convert of result to rgl format if(require('rgl')) { cuber=read.obj(system.file("obj/cube.obj", package = "readobj"), convert.rgl=true) shade3d(cuber) } tinyobj2shapelist3d 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

4 tinyobj2shapelist3d Value a list of class shapelist3d containing a mesh3d for each object or group element in the original OBJ file. read.obj, mesh3d, shapelist3d, rgl.material Examples cube=read.obj(system.file("obj/cube.obj", package = "readobj")) if(require("rgl")){ cubesl=tinyobj2shapelist3d(cube) shade3d(cubesl) }

Index mesh3d, 2, 4 read.obj, 2, 2, 4 readobj, 2, 3 readobj (readobj-package), 2 readobj-package, 2 rgl.material, 4 shapelist3d, 2, 4 tinyobj2shapelist3d, 3, 3 writeobj, 2 5