Learn R Programming

The R package meshsimp

The R package meshsimp offers a high-level access to the C++ library meshsimplification, implementing a simplification strategy for surface triangular meshes with associated distributed data. To expose the C++ code to R, the API provided by Rcpp and RcppEigen is used.

The tree structure of the package root folder is compliant with the standard. In detail:

  • src contains C++ header and source files;
  • R contains R source files;
  • demo contains scripts examplifying the use of the package;
  • data contains R datasets storing three-dimensional surface grids;
  • inst/extdata contains three-dimensional surface grids in AVS UCD file format.

To install the package, first make sure that the package devtools is correctly installed on the current workstation. Then, from the package root folder type:

R -e "library(devtools); install()" --silent 

Administrator privileges may be required.

Copy Link

Version

Install

install.packages('meshsimp')

Monthly Downloads

13

Version

0.1.1

License

GPL-3

Maintainer

Stefano Ubbiali

Last Published

June 13th, 2017

Functions in meshsimp (0.1.1)

get.data.locations

Get the list of data locations from an object of class RcppSimplification.
get.edges

Get the list of edges from an object of class RcppSimplification.
get.mesh.2.5D

Get surface mesh from an object of class RcppSimplification.
get.quantity.of.information

Get the quantity of information associated with each element of the triangulation, from an object of class RcppSimplification.
import.mesh.2.5D

Instantiate a mesh.2.5D object from file.
mesh

The mesh of a pawn.
plot.mesh.2.5D

Plot a mesh in a 3D perspective.
simplify.mesh.2.5D

Perform the simplification of a mesh, given as an object of class mesh.2.5D.